Skip to content

Commit

Permalink
Update perms.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 15, 2019
1 parent 60e8513 commit 27e3a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/user/perms.php
Expand Up @@ -59,7 +59,7 @@
if (isset($user->societe_id) && $user->societe_id > 0) $socid = $user->societe_id;
$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
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();
}
Expand Down

0 comments on commit 27e3a2c

Please sign in to comment.