Skip to content

Commit

Permalink
Also checking for the (int) equivalents
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Oct 11, 2017
1 parent 217ae6c commit 1b7111e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/User/Permissions/PermissionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ public function clean($permissions)
*/
protected function getState($checkedPermission)
{
if ($checkedPermission === '1') {
if ($checkedPermission === '1' || $checkedPermission === 1) {
return true;
}

if ($checkedPermission === '-1') {
if ($checkedPermission === '-1' || $checkedPermission === -1) {
return false;
}

Expand Down

0 comments on commit 1b7111e

Please sign in to comment.