Skip to content

Commit

Permalink
fix(formanswer): canViewItem with group
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 16, 2019
1 parent 28f83d0 commit 4c22600
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ public function canViewItem() {
return true;
}
} else {
if (in_array($row['items_id'], $groups)) {
return true;
foreach( $groups as $group) {
if ($group['id'] == $row['items_id']) {
return true;
}
}
}
}
Expand Down

0 comments on commit 4c22600

Please sign in to comment.