LSsession::canExecuteCustomAction(): fix handling self LSprofile

This commit is contained in:
Benjamin Renard 2023-01-09 19:53:41 +01:00
parent 98a5e6c1b3
commit 82b29e6abc

View file

@ -2680,8 +2680,10 @@ class LSsession {
$whoami = self :: whoami($dn); $whoami = self :: whoami($dn);
if (isset($conf['rights']) && is_array($conf['rights'])) { if (isset($conf['rights']) && is_array($conf['rights'])) {
if ($dn == self :: $dn && in_array('self', $conf['rights']))
return True;
foreach($whoami as $who) { foreach($whoami as $who) {
if (in_array($who,$conf['rights'])) { if ($who != 'self' && in_array($who,$conf['rights'])) {
return True; return True;
} }
} }