From d46c05b12b9dcd65d2d9cd230bf45b5bdf6fa8bd Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 22 Nov 2018 00:09:55 +0100 Subject: linkfrom analyse --- app/class/controller.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'app/class/controller.php') diff --git a/app/class/controller.php b/app/class/controller.php index c722b1a..b0681bb 100644 --- a/app/class/controller.php +++ b/app/class/controller.php @@ -31,18 +31,6 @@ class Controller return $router->generate($string, ['art' => $id]); }); } - - public function useriseditor() - { - if ($this->user->level() >= $this->usermanager::EDITOR) { - echo '

Editor access

'; - return true; - } else { - echo '

Not enought rights to see more...

'; - return false; - } - } - public function showtemplate($template, $params) { @@ -62,6 +50,7 @@ class Controller + public function redirect($url) { header('Location: ' . $url); -- cgit v1.2.3