From 47ebeba04121a1872c836ec12596467fd50b634c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 5 Jun 2019 22:22:36 +0200 Subject: [PATCH] remove implemented todos --- Router/Router.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Router/Router.php b/Router/Router.php index 44ed1e9fb..b297f98b2 100644 --- a/Router/Router.php +++ b/Router/Router.php @@ -132,7 +132,6 @@ final class Router ) { // if csrf is required but not set if (isset($d['csrf']) && $csrf === null) { - // todo: replace http request and http uri with general request and http \array_merge($bound, $this->route('/' . $app . '/e403', $csrf, $verb)); continue; @@ -141,13 +140,11 @@ final class Router // if permission check is invalid if ((isset($d['permission']) && $account === null) || (isset($d['permission']) - && !$account->hasPermission($d['permission']['type'], $orgId, $app, $d['permission']['module'], $d['permission']['state'])) + && !$account->hasPermission( + $d['permission']['type'], $orgId, $app, $d['permission']['module'], $d['permission']['state']) + ) ) { - // todo: replace http request and http uri with general request and http - \array_merge( - $bound, - $this->route('/' . $app . '/e403', $csrf, $verb) - ); + \array_merge($bound, $this->route('/' . $app . '/e403', $csrf, $verb)); continue; }