Skip to content

Commit

Permalink
fix(form): bad sql expression for right check
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 12, 2021
1 parent 1594e6f commit 2e9b693
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,7 @@ public function showForm($ID, $options = []) {
"$profileRightTable.name" => "ticketvalidation",
[
'OR' => [
"$profileRightTable.rights" => ['&', TicketValidation::VALIDATEREQUEST],
"$profileRightTable.rights" => ['&', TicketValidation::VALIDATEINCIDENT],
"$profileRightTable.rights" => ['&', TicketValidation::VALIDATEREQUEST | TicketValidation::VALIDATEINCIDENT],
],
],
"$userTable.is_active" => '1',
Expand Down

0 comments on commit 2e9b693

Please sign in to comment.