Skip to content

Commit

Permalink
fix(form_answer): allow view of form if the user has update entity right
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed May 16, 2018
1 parent 1d797fa commit 7dad4cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/form_answer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public function canViewItem() {
return false;
}

if (Session::haveRight('entity', UPDATE)) {
return true;
}

if ($_SESSION['glpiID'] == $this->getField('requester_id')) {
return true;
}
Expand Down

0 comments on commit 7dad4cb

Please sign in to comment.