mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +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')) {
|
if (($right=='w') || ($right=='r')) {
|
||||||
$r = 'n';
|
$r = 'n';
|
||||||
foreach($whoami as $who) {
|
foreach($whoami as $who) {
|
||||||
$nr = $relConf['rights'][$who];
|
$nr = ((isset($relConf['rights'][$who]))?$relConf['rights'][$who]:'');
|
||||||
if($nr == 'w') {
|
if($nr == 'w') {
|
||||||
$r = 'w';
|
$r = 'w';
|
||||||
}
|
}
|
||||||
|
@ -1893,7 +1893,7 @@ class LSsession {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach($whoami as $who) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue