public function addUsersRoleByAccountType(BOL_QuestionAccountType $accountType) { if (empty($accountType)) { return; } /* @var $defaultRole BOL_AuthorizationRole */ $defaultRole = BOL_AuthorizationService::getInstance()->getDefaultRole(); if ($accountType->roleId == $defaultRole->id) { return; } $this->accountDao->addRoleByAccountType($accountType); }