Fixed template rendering bug when no users are granted access
authorSybren A. Stüvel <sybren@stuvel.eu>
Thu, 9 Nov 2017 16:37:08 +0000 (17:37 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Thu, 9 Nov 2017 16:37:08 +0000 (17:37 +0100)
svnman/__init__.py

index 11f1ccd..daefe19 100644 (file)
@@ -150,9 +150,6 @@ class SVNManExtension(PillarExtension):
                 svninfo.setdefault(db_user['_id'], {})['db'] = db_user
 
             svn_users = sorted(svninfo.values(), key=lambda item: item.get('username', ''))
-        else:
-            svn_url = ''
-            repo_id = ''
 
         return flask.render_template('svnman/project_settings/settings.html',
                                      project=project,