From 5b37e29354e9547ac14bf9767d95f489cc92e20c Mon Sep 17 00:00:00 2001 From: reshke Date: Mon, 10 Aug 2026 07:27:18 +0000 Subject: [PATCH] fix grant bug --- src/backend/utils/adt/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/adt/acl.c b/src/backend/utils/adt/acl.c index e2547d719e..6f996cf243 100644 --- a/src/backend/utils/adt/acl.c +++ b/src/backend/utils/adt/acl.c @@ -1281,7 +1281,7 @@ check_circularity(const Acl *old_acl, const AclItem *mod_aip, aip = ACL_DAT(acl); for (i = 0; i < num; i++) { - if (aip[i].ai_grantee == mod_aip->ai_grantee && + if (has_privs_of_role(mod_aip->ai_grantee, aip[i].ai_grantee) && ACLITEM_GET_GOPTIONS(aip[i]) != ACL_NO_RIGHTS) { Acl *new_acl;