mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 02:19:07 +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')) {
|
if (($right=='r')||($right=='w')) {
|
||||||
foreach($whoami as $who) {
|
foreach($whoami as $who) {
|
||||||
foreach ($attrs_conf as $attr_name => $attr_config) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1805,7 +1805,7 @@ class LSsession {
|
||||||
else {
|
else {
|
||||||
foreach($whoami as $who) {
|
foreach($whoami as $who) {
|
||||||
foreach ($attrs_conf as $attr_name => $attr_config) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue