This commit is contained in:
Malibu
2015-02-17 22:40:13 +01:00
3 changed files with 40 additions and 23 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()->droits == 0)
{
return new RedirectResponse(url('/login'));
}