diff --git a/src/includes/class/class.LSattribute.php b/src/includes/class/class.LSattribute.php index 261268b2..eea33f0a 100644 --- a/src/includes/class/class.LSattribute.php +++ b/src/includes/class/class.LSattribute.php @@ -302,7 +302,7 @@ class LSattribute extends LSlog_staticLoggerClass { else { $whoami = $this -> ldapObject -> whoami(); foreach($whoami as $who) { - $right = $this -> getConfig("rights.$who", ($who=='admin'?'r':null)); + $right = $this -> getConfig("rights.$who", null); if (in_array($right, array('r', 'w'))) { $return = $right; if ($return == 'w') break; diff --git a/src/includes/class/class.LSldapObject.php b/src/includes/class/class.LSldapObject.php index 22be81f2..03ce1cca 100644 --- a/src/includes/class/class.LSldapObject.php +++ b/src/includes/class/class.LSldapObject.php @@ -1043,11 +1043,11 @@ class LSldapObject extends LSlog_staticLoggerClass { } /** - * Retourne qui est l'utilisateur par rapport à cet object + * Return connected user's LSprofiles on this object * * @author Benjamin Renard * - * @retval string 'admin'/'self'/'user' pour Admin , l'utilisateur lui même ou un simple utilisateur + * @retval array Array of LSprofiles of connected user's LSprofiles on this object */ public function whoami() { if (!$this -> _whoami) diff --git a/src/includes/class/class.LSsession.php b/src/includes/class/class.LSsession.php index 809e4783..d5c670ae 100644 --- a/src/includes/class/class.LSsession.php +++ b/src/includes/class/class.LSsession.php @@ -2116,11 +2116,11 @@ class LSsession { } /** - * Retourne qui est l'utilisateur par rapport à l'object + * Return connected user's LSprofiles on a specific object. * - * @param[in] string Le DN de l'objet + * @param[in] string The object's DN * - * @retval string 'admin'/'self'/'user' pour Admin , l'utilisateur lui même ou un simple utilisateur + * @retval array Array of LSprofiles of the connected user on the specified object */ public static function whoami($dn) { $retval = array('user');