Просмотр исходного кода

function permisison_exists remove operator

It was added by a contributor who hasn't used it anywhere in the project. For this reason its being removed.
FusionPBX 1 год назад
Родитель
Сommit
e009e26d94
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      resources/functions.php

+ 1 - 1
resources/functions.php

@@ -322,7 +322,7 @@
 	//check if the permission exists
 	//check if the permission exists
 	if (!function_exists('permission_exists')) {
 	if (!function_exists('permission_exists')) {
 
 
-		function permission_exists($permission_name, $operator = 'or') {
+		function permission_exists($permission_name) {
 			$database = database::new();
 			$database = database::new();
 			$permission = new permissions($database);
 			$permission = new permissions($database);
 			return $permission->exists($permission_name);
 			return $permission->exists($permission_name);