Update perms.php
This commit is contained in:
parent
60e85136df
commit
27e3a2cb1d
@ -59,7 +59,7 @@ $socid=0;
|
|||||||
if (isset($user->societe_id) && $user->societe_id > 0) $socid = $user->societe_id;
|
if (isset($user->societe_id) && $user->societe_id > 0) $socid = $user->societe_id;
|
||||||
$feature2 = (($socid && $user->rights->user->self->creer)?'':'user');
|
$feature2 = (($socid && $user->rights->user->self->creer)?'':'user');
|
||||||
// A user can always read its own card if not advanced perms enabled, or if he has advanced perms, except for admin
|
// A user can always read its own card if not advanced perms enabled, or if he has advanced perms, except for admin
|
||||||
if ($user->id == $id && (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->user->self_advance->readperms)) && empty($user->admin))
|
if ($user->id == $id && (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->user->self_advance->readperms) && empty($user->admin)))
|
||||||
{
|
{
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user