mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
Fix view access to specific autorized LSobject even if LSobject type is not in menu
This commit is contained in:
parent
8f037d8421
commit
c0c64d3bef
1 changed files with 8 additions and 7 deletions
|
@ -25,14 +25,15 @@ require_once 'core.php';
|
|||
if(LSsession :: startLSsession()) {
|
||||
if (isset($_REQUEST['LSobject'])) {
|
||||
$LSobject = $_REQUEST['LSobject'];
|
||||
$dn = isset($_REQUEST['dn'])?urldecode($_REQUEST['dn']):null;
|
||||
if ( $LSobject == 'SELF' ) {
|
||||
$LSobject = LSsession :: getLSuserObject() -> getType();
|
||||
$dn = LSsession :: getLSuserObjectDn();
|
||||
}
|
||||
else {
|
||||
$dn = isset($_REQUEST['dn'])?urldecode($_REQUEST['dn']):null;
|
||||
}
|
||||
|
||||
if (LSsession :: in_menu($LSobject)) {
|
||||
|
||||
if ( $LSobject == 'SELF' ) {
|
||||
$LSobject = LSsession :: getLSuserObject() -> getType();
|
||||
$dn = LSsession :: getLSuserObjectDn();
|
||||
}
|
||||
if (LSsession :: in_menu($LSobject) || LSsession :: canAccess($LSobject,$dn)) {
|
||||
|
||||
if ( LSsession :: loadLSobject($LSobject) ) {
|
||||
// Affichage d'un objet
|
||||
|
|
Loading…
Reference in a new issue