Fixed an issue where Revoke all is not displayed if the user change privilege.

refs #4567
This commit is contained in:
Nikhil Mohite 2021-08-31 14:08:56 +05:30 committed by Akshay Joshi
parent 4e0bd557d9
commit 620e3a803d

View File

@ -698,7 +698,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
if 'acl' in data:
for acl in data['acl']:
data.update({'revoke_all': []})
if len(acl['privileges']) > 1:
if len(acl['privileges']) > 0 and len(acl['privileges']) < 7:
data['revoke_all'].append(acl['grantee'])
# if table is partitions then