mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
LSsession :: canAccess() : Fixed notice PHP
This commit is contained in:
parent
d432819ed5
commit
0d440bffc3
1 changed files with 2 additions and 2 deletions
|
@ -1796,7 +1796,7 @@ class LSsession {
|
|||
if (($right=='r')||($right=='w')) {
|
||||
foreach($whoami as $who) {
|
||||
foreach ($attrs_conf as $attr_name => $attr_config) {
|
||||
if ($attr_config['rights'][$who]==$right) {
|
||||
if (isset($attr_config['rights'][$who]) && $attr_config['rights'][$who]==$right) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -1805,7 +1805,7 @@ class LSsession {
|
|||
else {
|
||||
foreach($whoami as $who) {
|
||||
foreach ($attrs_conf as $attr_name => $attr_config) {
|
||||
if ( ($attr_config['rights'][$who]=='r') || ($attr_config['rights'][$who]=='w') ) {
|
||||
if ( (isset($attr_config['rights'][$who])) && ( ($attr_config['rights'][$who]=='r') || ($attr_config['rights'][$who]=='w') ) ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue