mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 03:19:05 +02:00
Merge branch 'ent-13795-saas-usuario-sin-privilegios-pm-puede-administrar-disco' into 'develop'
Ent 13795 saas usuario sin privilegios pm puede administrar disco See merge request artica/pandorafms!7421
This commit is contained in:
commit
d70163ea0c
@ -140,10 +140,7 @@ if ((bool) check_acl($config['id_user'], 0, 'AR') === true
|
||||
$sub['godmode/servers/discovery&wiz=custom']['sub2'] = $sub2;
|
||||
}
|
||||
|
||||
if (check_acl($config['id_user'], 0, 'RW')
|
||||
|| check_acl($config['id_user'], 0, 'RM')
|
||||
|| check_acl($config['id_user'], 0, 'PM')
|
||||
) {
|
||||
if (users_is_admin($config['id_user']) === true) {
|
||||
$sub['godmode/servers/discovery&wiz=magextensions']['text'] = __('Manage disco packages');
|
||||
$sub['godmode/servers/discovery&wiz=magextensions']['id'] = 'mextensions';
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ class ManageExtensions extends HTML
|
||||
{
|
||||
global $config;
|
||||
|
||||
if (! check_acl($config['id_user'], 0, 'AR')) {
|
||||
if (users_is_admin($config['id_user']) === false) {
|
||||
db_pandora_audit(
|
||||
AUDIT_LOG_ACL_VIOLATION,
|
||||
'Trying to access Manage disco packages'
|
||||
|
Loading…
x
Reference in New Issue
Block a user