Update functions.php

This commit is contained in:
FusionPBX
2023-09-11 11:43:31 -06:00
committed by GitHub
parent 702abf76ee
commit 5f688f2e1d
+2 -2
View File
@@ -276,9 +276,9 @@
//check if the permission exists //check if the permission exists
if (!function_exists('permission_exists')) { if (!function_exists('permission_exists')) {
function permission_exists($permission, $operator = 'or') { function permission_exists($permission_name, $operator = 'or') {
$permission = new permissions; $permission = new permissions;
return $permission->exists($permission); return $permission->exists($permission_name);
} }
} }