mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +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,15 +25,16 @@ 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 (LSsession :: in_menu($LSobject) || LSsession :: canAccess($LSobject,$dn)) {
|
||||
|
||||
if ( $LSobject == 'SELF' ) {
|
||||
$LSobject = LSsession :: getLSuserObject() -> getType();
|
||||
$dn = LSsession :: getLSuserObjectDn();
|
||||
}
|
||||
|
||||
if ( LSsession :: loadLSobject($LSobject) ) {
|
||||
// Affichage d'un objet
|
||||
if ( $dn!='' ) {
|
||||
|
|
Loading…
Reference in a new issue