Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
mah0001 committed May 30, 2024
1 parent 8198105 commit 6806ba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/controllers/api/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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();
}
Expand All @@ -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(
Expand Down

0 comments on commit 6806ba8

Please sign in to comment.