mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-28 11:23:49 +01:00
LSsession::canExecuteCustomAction(): fix handling self LSprofile
This commit is contained in:
parent
98a5e6c1b3
commit
82b29e6abc
1 changed files with 3 additions and 1 deletions
|
@ -2680,8 +2680,10 @@ class LSsession {
|
|||
$whoami = self :: whoami($dn);
|
||||
|
||||
if (isset($conf['rights']) && is_array($conf['rights'])) {
|
||||
if ($dn == self :: $dn && in_array('self', $conf['rights']))
|
||||
return True;
|
||||
foreach($whoami as $who) {
|
||||
if (in_array($who,$conf['rights'])) {
|
||||
if ($who != 'self' && in_array($who,$conf['rights'])) {
|
||||
return True;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue