Fix isAdmin and added 401 template
This commit is contained in:
+1
-1
@@ -133,7 +133,7 @@ class User extends Model implements UserInterface, RemindableInterface
|
||||
*/
|
||||
public function getIsAdminAttribute()
|
||||
{
|
||||
return (bool) $this->level;
|
||||
return $this->level == 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user