Skip to content

Commit

Permalink
getNoteDetails: checkIssuePermissions
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed May 26, 2020
1 parent b11f30b commit 42f75f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/RPC/RemoteApi.php
Expand Up @@ -707,6 +707,8 @@ public function getNoteDetails($note_id, $fields)
throw new RemoteApiException($e->getMessage(), $e->getCode(), $e);
}

$this->checkIssuePermissions($note['not_iss_id']);

if ($fields) {
$note = $this->filterKeys($note, $fields);
}
Expand Down Expand Up @@ -1386,7 +1388,7 @@ private static function getRemoteAssocListByUser($usr_id, $only_customer_project
* @param int $issue_id
* @since 3.2.2
*/
private function checkIssuePermissions($issue_id)
private function checkIssuePermissions(int $issue_id): void
{
$projects = $this->getUserAssignedProjects(false);
$details = $this->getIssueDetails($issue_id);
Expand Down

0 comments on commit 42f75f5

Please sign in to comment.