X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/261e57fc4e236b97ec5604b5e024cc68b64ede79..refs/pull/665/head:/app/User.php diff --git a/app/User.php b/app/User.php index 8033557e4..fd6879ba0 100644 --- a/app/User.php +++ b/app/User.php @@ -81,7 +81,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon */ public function hasSystemRole($role) { - return $this->roles->pluck('system_name')->contains('admin'); + return $this->roles->pluck('system_name')->contains($role); } /**