From a311ed9842d97175bf0cd6e227b3e7b80ecedf24 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 11 Apr 2011 13:05:11 +0200 Subject: [PATCH] Added possibility to modify LSldapObject with key word SELF --- public_html/modify.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public_html/modify.php b/public_html/modify.php index 06d8860a..644ed1e9 100644 --- a/public_html/modify.php +++ b/public_html/modify.php @@ -28,7 +28,13 @@ if(LSsession :: startLSsession()) { $LSobject = $_POST['LSform_objecttype']; } else if (isset($_GET['LSobject'])) { - $LSobject = $_GET['LSobject']; + if ($_GET['LSobject'] == 'SELF') { + $LSobject = LSsession :: getLSuserObject() -> getType(); + $dn = LSsession :: getLSuserObjectDn(); + } + else { + $LSobject = $_GET['LSobject']; + } } if (isset($_POST['LSform_objectdn'])) {