]> BookStack Code Mirror - bookstack/blobdiff - app/Repos/UserRepo.php
Update Ldap.php
[bookstack] / app / Repos / UserRepo.php
index 127db9fb59c482aab05198277558bf7b6abdcac6..ab3716fca027b857de43f239691b931f6cb95b05 100644 (file)
@@ -199,9 +199,9 @@ class UserRepo
      * Get the roles in the system that are assignable to a user.
      * @return mixed
      */
-    public function getAssignableRoles()
+    public function getAllRoles()
     {
-        return $this->role->visible();
+        return $this->role->all();
     }
 
     /**
@@ -211,7 +211,7 @@ class UserRepo
      */
     public function getRestrictableRoles()
     {
-        return $this->role->where('hidden', '=', false)->where('system_name', '=', '')->get();
+        return $this->role->where('system_name', '!=', 'admin')->get();
     }
 
 }
\ No newline at end of file