started making graphql do the right thing.
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
|
||||
(defn can-see-company? [identity company]
|
||||
(or (= "admin" (:role identity))
|
||||
((set (:companies identity)) (:id company))))
|
||||
((set (map :db/id (:user/companies identity))) (:db/id company))))
|
||||
|
||||
(defn assert-can-see-company [identity company]
|
||||
(when-not (can-see-company? identity company)
|
||||
|
||||
Reference in New Issue
Block a user