diff options
Diffstat (limited to 'app/class/controller.php')
-rw-r--r-- | app/class/controller.php | 13 |
1 files changed, 1 insertions, 12 deletions
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 '<h3>Editor access</h3>'; - return true; - } else { - echo '<h3>Not enought rights to see more...</h3>'; - return false; - } - } - public function showtemplate($template, $params) { @@ -62,6 +50,7 @@ class Controller + public function redirect($url) { header('Location: ' . $url); |