params['user_id']) { return true; } $user = $services->getUserFactory()->newFromId($this->params['user_id']); if ($user->isRegistered() && MiscUtils::checkUserIsActivatedEditor($user)) { $services->getUserGroupManager()->addUserToGroup($user, 'activated-editor'); } return true; } }