Should fix read-only users with tons of clients

This commit is contained in:
2024-01-22 11:01:48 -08:00
parent 08590707c3
commit 87bd655253
3 changed files with 2 additions and 1 deletions

View File

@@ -49,7 +49,7 @@
:db/id (:db/id user)
:user/role (name (:user/role user))
:user/name (:user/name user)}
(= "admin" (name (:user/role user)))
(#{"admin" "read-only"} (name (:user/role user)))
(assoc :gz-clients (->> (:user/clients user)
(map (fn [c]
(select-keys c [:client/code :db/id :client/locations])))

View File

@@ -67,6 +67,7 @@
:start (run-jetty app {:port port
:join? false
:configurator configure-jetty
:response-header-size 16384
:request-header-size 16384})
:stop (.stop jetty))