Skip to content

Commit

Permalink
Add the missing ! to the boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
grkek committed Nov 13, 2023
1 parent ecd5950 commit d3f1ce9
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?
else
block_access = !access.write?
end
Expand Down

0 comments on commit d3f1ce9

Please sign in to comment.