[sentry] Changing role privileges removes HDFS ACLs
@@ -233,10 +233,10 @@ def save_privileges(request):
modified_privileges = [privilege for privilege in role['privilegesChanged'] if privilege['status'] == 'modified']
old_privileges_ids = [privilege['id'] for privilege in modified_privileges]
- _hive_add_privileges(request.user, role, modified_privileges)
for privilege in role['originalPrivileges']:
if privilege['id'] in old_privileges_ids:
_drop_sentry_privilege(request.user, role, privilege)
+ _hive_add_privileges(request.user, role, modified_privileges)
result['message'] = _('Privileges updated')
result['status'] = 0
