Skip to content

Commit e84d467

Browse files
Fix exists grant check (#616)
#615 same as with additional check on grantee
1 parent d71aa94 commit e84d467

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/dbv1/exists.sql.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/dbv1/queries/exists.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SELECT EXISTS(
2424
FROM grants
2525
WHERE
2626
user_id = @user_id
27-
AND grantee_address = @grantee_address
27+
AND grantee_address = lower(@grantee_address)
2828
AND is_current = true
2929
AND is_revoked = false
3030
);

0 commit comments

Comments
 (0)