mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix regression when generating SQL for new databases, caused by an invalid check of datallowconn introduced in the fix for #1801.
This commit is contained in:
parent
53ea991907
commit
1d571902da
@ -715,7 +715,8 @@ class DatabaseView(PGChildNodeView):
|
||||
acls = []
|
||||
SQL_acl = ''
|
||||
|
||||
if data['datallowconn']:
|
||||
if ('datallowconn' in data and data['datallowconn']) or \
|
||||
'datallowconn' not in data:
|
||||
try:
|
||||
acls = render_template(
|
||||
"/".join([self.template_path, 'allowed_privs.json'])
|
||||
|
Loading…
Reference in New Issue
Block a user