mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where Revoke all is not displayed if the user change privilege.
refs #4567
This commit is contained in:
parent
4e0bd557d9
commit
620e3a803d
@ -698,7 +698,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
|
|||||||
if 'acl' in data:
|
if 'acl' in data:
|
||||||
for acl in data['acl']:
|
for acl in data['acl']:
|
||||||
data.update({'revoke_all': []})
|
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'])
|
data['revoke_all'].append(acl['grantee'])
|
||||||
|
|
||||||
# if table is partitions then
|
# if table is partitions then
|
||||||
|
Loading…
Reference in New Issue
Block a user