Skip to content

Commit

Permalink
simplify return
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Dec 27, 2020
1 parent 299b3ab commit 9eb092f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions class/PermissionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,7 @@ public function isGranted($gpermName, $id)
return false;
}
$permissions = $this->getGrantedItems($gpermName);
if (!empty($permissions) && isset($permissions[$id])) {
return true;
}

return false;
return !empty($permissions) && isset($permissions[$id]);
}

/**
Expand Down

0 comments on commit 9eb092f

Please sign in to comment.