Ensure user/roles with special characters are quoted to avoid syntax error.#6234

This commit is contained in:
Yogesh Mahajan 2023-05-03 15:19:08 +05:30 committed by GitHub
parent 4fbfcdfee9
commit d6f01b552a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,9 +137,11 @@ def parse_priv_to_db(str_privileges, allowed_acls=[]):
acltype = priv['acltype'] if 'acltype' in priv else 'defaultacls'
grantor = driver.qtIdent(None, priv['grantor'])
# Appending and returning all ACL
privileges.append({
'grantor': priv['grantor'],
'grantor': grantor,
'grantee': grantee,
'with_grant': priv_with_grant,
'without_grant': priv_without_grant,