mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
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);
|
$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