mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 02:19:07 +01:00
Remove historic read right on all attributes of the hard-coded "admin" LSprofile
This commit is contained in:
parent
4e8a6db06b
commit
3c75ef482e
3 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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 <brenard@easter-eggs.com>
|
||||
*
|
||||
* @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)
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue