mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure user/roles with special characters are quoted to avoid syntax error.#6234
This commit is contained in:
parent
4fbfcdfee9
commit
d6f01b552a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user