We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_allowed()
1 parent 9becdd3 commit 8fff679Copy full SHA for 8fff679
1 file changed
application/libraries/Aauth.php
@@ -1692,7 +1692,9 @@ public function is_allowed($perm_par, $user_id=FALSE){
1692
return true;
1693
}
1694
1695
- $perm_id = $this->get_perm_id($perm_par);
+ if ( ! $perm_id = $this->get_perm_id($perm_par)) {
1696
+ return FALSE;
1697
+ }
1698
1699
$query = $this->aauth_db->where('perm_id', $perm_id);
1700
$query = $this->aauth_db->where('user_id', $user_id);
0 commit comments