コード例 #1
0
ファイル: PowerUser.class.php プロジェクト: Tjorriemorrie/app
 /**
  * Removes group rights from a user if the property's name
  * matches one in the aPowerUsersRightsMapping array and
  * a user actually has it
  *
  * @param string $sProperty One of the types in consts
  * @return bool Always return true until the groups is only companion
  */
 public function removePowerUserRemoveGroup($sProperty)
 {
     if (in_array($sProperty, self::$aPowerUserProperties) && $this->bUseGroups && $this->isGroupForRemoval($sProperty)) {
         \UserRights::removeGlobalGroup($this->oUser, self::GROUP_NAME);
         $this->logSuccess($sProperty, self::ACTION_REMOVE_GROUP);
     }
     return true;
 }