Skip to content

Commit

Permalink
Add the conditional to check for read access as well
Browse files Browse the repository at this point in the history
  • Loading branch information
grkek committed Nov 13, 2023
1 parent d3f1ce9 commit 8434fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos-rest-api/utilities/current-user.cr
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module PlaceOS::Api
block_access = true

if request.method.downcase == "get"
block_access = !access.none?
block_access = !access.none? || !access.read?
else
block_access = !access.write?
end
Expand Down

0 comments on commit 8434fdb

Please sign in to comment.