/** * Adds group rights to a user if the property's name * matches one in the aPowerUsersRightsMapping array * * @param string $sProperty One of the types in consts * @return bool Always return true until the groups is only companion */ public function addPowerUserAddGroup($sProperty) { if (in_array($sProperty, self::$aPowerUserProperties) && $this->bUseGroups && !in_array(self::GROUP_NAME, \UserRights::getGlobalGroups($this->oUser))) { \UserRights::addGlobalGroup($this->oUser, self::GROUP_NAME); $this->logSuccess($sProperty, self::ACTION_ADD_GROUP); } return true; }