mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-23 00:43:48 +01:00
LSsession :: relationCanAccess() : Fixed notice PHP
This commit is contained in:
parent
0d440bffc3
commit
4ce6560504
1 changed files with 2 additions and 2 deletions
|
@ -1876,7 +1876,7 @@ class LSsession {
|
|||
if (($right=='w') || ($right=='r')) {
|
||||
$r = 'n';
|
||||
foreach($whoami as $who) {
|
||||
$nr = $relConf['rights'][$who];
|
||||
$nr = ((isset($relConf['rights'][$who]))?$relConf['rights'][$who]:'');
|
||||
if($nr == 'w') {
|
||||
$r = 'w';
|
||||
}
|
||||
|
@ -1893,7 +1893,7 @@ class LSsession {
|
|||
}
|
||||
else {
|
||||
foreach($whoami as $who) {
|
||||
if (($relConf['rights'][$who] == 'w') || ($relConf['rights'][$who] == 'r')) {
|
||||
if ((isset($relConf['rights'][$who])) && ( ($relConf['rights'][$who] == 'w') || ($relConf['rights'][$who] == 'r') ) ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue