aboutsummaryrefslogtreecommitdiff
path: root/app/class/controller.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-22 00:09:55 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-22 00:09:55 +0100
commitd46c05b12b9dcd65d2d9cd230bf45b5bdf6fa8bd (patch)
treed763a0488fa3055a1a75b2d669744fcb8526ab92 /app/class/controller.php
parent47689d1fdfb2c33ee5e00cfe9fe529d6ba3529db (diff)
downloadwcms-d46c05b12b9dcd65d2d9cd230bf45b5bdf6fa8bd.tar.gz
wcms-d46c05b12b9dcd65d2d9cd230bf45b5bdf6fa8bd.zip
linkfrom analyse
Diffstat (limited to 'app/class/controller.php')
-rw-r--r--app/class/controller.php13
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);