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:
Khushboo Vashi 2016-12-16 13:12:12 +00:00 committed by Dave Page
parent 53ea991907
commit 1d571902da

View File

@ -715,7 +715,8 @@ class DatabaseView(PGChildNodeView):
acls = [] acls = []
SQL_acl = '' SQL_acl = ''
if data['datallowconn']: if ('datallowconn' in data and data['datallowconn']) or \
'datallowconn' not in data:
try: try:
acls = render_template( acls = render_template(
"/".join([self.template_path, 'allowed_privs.json']) "/".join([self.template_path, 'allowed_privs.json'])