Skip to content

Commit 758a57d

Browse files
committed
fixup! Use SpiceDB for lease-related auth checks
1 parent 48539ec commit 758a57d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/declarative_authorization/authorization.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ def permit!(privilege, options = {})
264264

265265
if conditions.key?(:is_renewal)
266266
rule_requires = conditions[:is_renewal][1]
267-
# If options[:object] has is_renewal, we'll use that value instead of checking SpiceDB.
268-
# This allows for Blue Moon leases and others to be checked without having to make a SpiceDB call.
267+
# If options[:object] has is_renewal, we'll use that value instead of obtaining it from SpiceDB.
268+
# This allows for Blue Moon leases and others to be checked without having to make a SpiceDB call for the value of is_renewal.
269269
if options[:object].respond_to?(:is_renewal)
270270
actual_value = options[:object].is_renewal
271271
else

0 commit comments

Comments
 (0)