forked from mirrors/easyappointments
Add fallback value to permissions check.
This commit is contained in:
parent
bf78545752
commit
2e97777cad
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ if ( ! function_exists('can'))
|
|||
|
||||
$permissions = $CI->roles_model->get_permissions_by_slug($role_slug);
|
||||
|
||||
return $permissions[$resource][$action];
|
||||
return $permissions[$resource][$action] ?? FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue