modified: SRC/app/Http/Middleware/RedirectIfNotAdmin.php

This commit is contained in:
www
2015-02-17 22:19:10 +01:00
parent fe630d6683
commit 6469a4e793
2 changed files with 13 additions and 1 deletions

View File

@ -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'));
}