mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Method new allow null
Needed to support temporary permissions
This commit is contained in:
@@ -198,7 +198,7 @@ if (!class_exists('permissions')) {
|
||||
/**
|
||||
* Returns a new permission object
|
||||
*/
|
||||
public static function new($database, $domain_uuid, $user_uuid) {
|
||||
public static function new($database = null, $domain_uuid = null, $user_uuid = null) {
|
||||
if (self::$permission === null) {
|
||||
self::$permission = new permissions($database, $domain_uuid, $user_uuid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user