- if (!$this->app->isLoggedIn()) {
- throw new HTTPException\ForbiddenException($this->t('Permission denied.'));
- }
- }
-
- public function put(array $request = [])
- {
- self::checkAllowedScope(self::SCOPE_WRITE);
-
- if (!$this->app->isLoggedIn()) {
- throw new HTTPException\ForbiddenException($this->t('Permission denied.'));
- }