Use the permissions::new method

This commit is contained in:
FusionPBX 2024-11-27 00:14:18 -07:00 committed by GitHub
parent 3a14a19800
commit 790d1ff137
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -323,8 +323,9 @@
if (!function_exists('permission_exists')) {
function permission_exists($permission_name) {
global $domain_uuid, $user_uuid;
$database = database::new();
$permission = new permissions($database);
$permission = permissions::new($database, $domain_uuid, $user_uuid);
return $permission->exists($permission_name);
}