- protected function delete()
- {
- self::checkAllowedScope(self::SCOPE_WRITE);
-
- if (!$this->app->isLoggedIn()) {
- throw new HTTPException\ForbiddenException($this->t('Permission denied.'));
- }
- }
-
- protected function patch()
- {
- self::checkAllowedScope(self::SCOPE_WRITE);
-
- if (!$this->app->isLoggedIn()) {
- throw new HTTPException\ForbiddenException($this->t('Permission denied.'));
- }
- }
-
- protected function post(array $request = [], array $post = [])
+ /**
+ * Additionally checks, if the caller is permitted to do this action
+ *
+ * {@inheritDoc}
+ *
+ * @throws HTTPException\ForbiddenException
+ */
+ public function run(array $request = [], bool $scopecheck = true): ResponseInterface