Also checking for the (int) equivalents

parent 217ae6c2
......@@ -61,11 +61,11 @@ class PermissionManager
*/
protected function getState($checkedPermission)
{
if ($checkedPermission === '1') {
if ($checkedPermission === '1' || $checkedPermission === 1) {
return true;
}
if ($checkedPermission === '-1') {
if ($checkedPermission === '-1' || $checkedPermission === -1) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment