mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update functions.php
This commit is contained in:
@@ -276,9 +276,9 @@
|
||||
|
||||
//check if the permission exists
|
||||
if (!function_exists('permission_exists')) {
|
||||
function permission_exists($permission, $operator = 'or') {
|
||||
function permission_exists($permission_name, $operator = 'or') {
|
||||
$permission = new permissions;
|
||||
return $permission->exists($permission);
|
||||
return $permission->exists($permission_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user