X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3fd61a3600f541da406dbde9516fb97c006f0068..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); } /**