Fix isAdmin and added 401 template

This commit is contained in:
Joseph Cohen
2015-01-23 17:06:46 -06:00
parent 787ecde0ea
commit 90c8551010
6 changed files with 42 additions and 5 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ class User extends Model implements UserInterface, RemindableInterface
*/
public function getIsAdminAttribute()
{
return (bool) $this->level;
return $this->level == 1;
}
/**