From 66e1de90dfecf3c0a0f2e63f41ec425ef641217b Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 9 May 2023 17:28:54 +0200 Subject: [PATCH] #10861 change permisions api functions --- pandora_console/include/functions_api.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 9707a53769..f4652aef35 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -11640,7 +11640,7 @@ function api_set_add_user_profile($id, $thrash1, $other, $thrash2) return; } - if (!check_acl($config['id_user'], 0, 'PM')) { + if (!check_acl($config['id_user'], 0, 'UM')) { returnError('forbidden', 'string'); return; } @@ -11664,7 +11664,7 @@ function api_set_add_user_profile($id, $thrash1, $other, $thrash2) return; } - if (!check_acl($config['id_user'], $group, 'PM')) { + if (!check_acl($config['id_user'], $group, 'UM')) { returnError('forbidden', 'string'); return; } @@ -11699,7 +11699,7 @@ function api_set_delete_user_profile($id, $thrash1, $other, $thrash2) return; } - if (!check_acl($config['id_user'], 0, 'PM')) { + if (!check_acl($config['id_user'], 0, 'UM')) { returnError('forbidden', 'string'); return; } @@ -11723,7 +11723,7 @@ function api_set_delete_user_profile($id, $thrash1, $other, $thrash2) return; } - if (!check_acl($config['id_user'], $group, 'PM')) { + if (!check_acl($config['id_user'], $group, 'UM')) { returnError('forbidden', 'string'); return; } @@ -11756,7 +11756,7 @@ function api_get_user_profiles_info($thrash1, $thrash2, $thrash3, $returnType) { global $config; - if (!check_acl($config['id_user'], 0, 'PM')) { + if (!check_acl($config['id_user'], 0, 'UM')) { returnError('forbidden', 'string'); return; } @@ -16969,7 +16969,7 @@ function api_set_delete_user_permission($thrash1, $thrash2, $other, $returnType) { global $config; - if (!check_acl($config['id_user'], 0, 'AW')) { + if (!check_acl($config['id_user'], 0, 'UM')) { returnError('forbidden', 'string'); return; }