2
0
forked from Wavyzz/dolibarr

Update main.inc.php

This commit is contained in:
javieralapps4up
2021-09-20 12:24:44 +02:00
committed by GitHub
parent 1ea2182bf7
commit 0453a27bda

View File

@@ -1041,6 +1041,7 @@ if (!defined('NOLOGIN')) {
$user->rights->user->self->password = 1;
//Required if advanced permissions are used with MAIN_USE_ADVANCED_PERMS
if (!empty($conf->global->MAIN_USE_ADVANCED_PERMS)) {
$user->rights->user->user_advance->readperms = 1;
$user->rights->user->user_advance->write = 1;
$user->rights->user->self_advance->readperms = 1;
@@ -1050,6 +1051,7 @@ if (!defined('NOLOGIN')) {
$user->rights->user->group_advance->write = 1;
$user->rights->user->group_advance->delete = 1;
}
}
/*
* Overwrite some configs globals (try to avoid this and have code to use instead $user->conf->xxx)