forked from Wavyzz/dolibarr
Update main.inc.php
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user