modified: SRC/app/Http/Middleware/RedirectIfNotAdmin.php
This commit is contained in:
parent
fe630d6683
commit
6469a4e793
@ -68,3 +68,15 @@ git pull
|
|||||||
exit
|
exit
|
||||||
git pull
|
git pull
|
||||||
exit
|
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
|
||||||
|
@ -35,7 +35,7 @@ class RedirectIfNotAdmin {
|
|||||||
*/
|
*/
|
||||||
public function handle($request, Closure $next)
|
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'));
|
return new RedirectResponse(url('/login'));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user