]> BookStack Code Mirror - bookstack/blobdiff - app/User.php
Added ability to secure images behind auth
[bookstack] / app / User.php
index 8033557e4cb9a0a048c1d7112c90f84dc4e4bf70..fd6879ba007dc1d551b7385c6a93c043aebc98db 100644 (file)
@@ -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);
     }
 
     /**