Fix regression when generating SQL for new databases, caused by an invalid check of datallowconn introduced in the fix for #1801.
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