From 6469a4e793d4e14247ab1cf2ea449e802098b234 Mon Sep 17 00:00:00 2001 From: www Date: Tue, 17 Feb 2015 22:19:10 +0100 Subject: [PATCH] modified: SRC/app/Http/Middleware/RedirectIfNotAdmin.php --- .bash_history | 12 ++++++++++++ SRC/app/Http/Middleware/RedirectIfNotAdmin.php | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.bash_history b/.bash_history index 8d15836..af6040f 100755 --- a/.bash_history +++ b/.bash_history @@ -68,3 +68,15 @@ git pull exit git pull exit +git pull +git status +git add . +git commit -m "admin view & navbar_signed" +git push +git pull +exit +git pull +exit +cd .. +ls +nano loadCSVAugustin2014.py diff --git a/SRC/app/Http/Middleware/RedirectIfNotAdmin.php b/SRC/app/Http/Middleware/RedirectIfNotAdmin.php index f63267a..f1c7ece 100644 --- a/SRC/app/Http/Middleware/RedirectIfNotAdmin.php +++ b/SRC/app/Http/Middleware/RedirectIfNotAdmin.php @@ -35,7 +35,7 @@ class RedirectIfNotAdmin { */ public function handle($request, Closure $next) { - if (!$this->auth->check() OR Auth::user()->admin == 0) + if (!$this->auth->check() OR Auth::user()->droit == 0) { return new RedirectResponse(url('/login')); }