mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Fixed bug when creating a login (flush privileges = reset the data cache)
SVN:trunk[175]
This commit is contained in:
@@ -56,6 +56,7 @@ abstract class UserRightsAddOnAPI
|
||||
abstract public function IsStimulusAllowed($iUserId, $sClass, $sStimulusCode, /*dbObjectSet*/ $oInstanceSet = null);
|
||||
abstract public function IsActionAllowedOnAttribute($iUserId, $sClass, $sAttCode, $iActionCode, /*dbObjectSet*/ $oInstanceSet = null);
|
||||
abstract public function IsAdministrator($iUserId);
|
||||
abstract public function FlushPrivileges();
|
||||
}
|
||||
|
||||
|
||||
@@ -269,6 +270,12 @@ class UserRights
|
||||
return self::$m_oAddOn->IsAdministrator($iUserId);
|
||||
}
|
||||
}
|
||||
|
||||
public static function FlushPrivileges()
|
||||
{
|
||||
return self::$m_oAddOn->FlushPrivileges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user