Skip to content
Snippets Groups Projects
Commit b3c70845 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

we want >= rather than <= on our read perms check.

parent cc4b3161
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@
public_perms 500 "Can't check user permissions: object doesn't have :public_perms.")
(cond (:is_superuser *current-user*) #{:read :write} ; superusers have full access to everything
(= creator_id *current-user-id*) #{:read :write} ; if user created OBJ they have all permissions
(>= perms-read public_perms) #{:read} ; if the object is public then everyone gets :read
(<= perms-read public_perms) #{:read} ; if the object is public then everyone gets :read
:else #{})) ; default is user has no permissions a.k.a private
(defn user-can?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment