Skip to content

Commit 7dad4cb

Browse files
committed
fix(form_answer): allow view of form if the user has update entity right
Signed-off-by: btry <tbugier@teclib.com>
1 parent 1d797fa commit 7dad4cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inc/form_answer.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ public function canViewItem() {
7171
return false;
7272
}
7373

74+
if (Session::haveRight('entity', UPDATE)) {
75+
return true;
76+
}
77+
7478
if ($_SESSION['glpiID'] == $this->getField('requester_id')) {
7579
return true;
7680
}

0 commit comments

Comments
 (0)