Fixed an issue where REVOKE ALL DDL in table SQL was added only for one role. #5926

This commit is contained in:
Pravesh Sharma 2023-05-22 14:09:47 +05:30 committed by GitHub
parent 48dd32f0e4
commit e04f5a0938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -705,8 +705,8 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
data['relacl'] = parse_priv_to_db(data['relacl'], self.acl)
if 'acl' in data:
data.update({'revoke_all': []})
for acl in data['acl']:
data.update({'revoke_all': []})
if len(acl['privileges']) > 0 and len(acl['privileges']) < 7:
data['revoke_all'].append(acl['grantee'])