Update functions.php

This commit is contained in:
FusionPBX 2023-09-11 11:43:31 -06:00 committed by GitHub
parent 702abf76ee
commit 5f688f2e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}