From 6806ba8ae1fd9a810b7e430c520ff261665405dc Mon Sep 17 00:00:00 2001 From: Mehmood Asghar Date: Thu, 30 May 2024 14:22:14 -0400 Subject: [PATCH] minor --- application/controllers/api/Editor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/api/Editor.php b/application/controllers/api/Editor.php index cdb4ac6a..a3fa892f 100644 --- a/application/controllers/api/Editor.php +++ b/application/controllers/api/Editor.php @@ -337,7 +337,7 @@ function options_post($sid=null) $options['changed_by']=$user_id; $options['sid']=$sid; - $this->editor_acl->user_has_project_access($sid,$permission='edit'); + $this->editor_acl->user_has_project_access($sid,$permission='edit', $this->api_user()); $this->Editor_model->set_project_options($sid,$options); $response=array( @@ -766,7 +766,7 @@ function pdf_get($sid=null) throw new Exception("Project not found"); } - $this->editor_acl->user_has_project_access($sid,$permission='view'); + $this->editor_acl->user_has_project_access($sid,$permission='view', $user=$this->api_user()); $this->Editor_model->download_project_pdf($sid); die(); } @@ -790,7 +790,7 @@ function generate_pdf_get($sid=null) throw new Exception("Project not found"); } - $this->editor_acl->user_has_project_access($sid,$permission='view'); + $this->editor_acl->user_has_project_access($sid,$permission='view', $user=$this->api_user()); $result=$this->Editor_model->generate_project_pdf($sid); $output=array(