diff --git a/rhodecode/lib/auth.py b/rhodecode/lib/auth.py --- a/rhodecode/lib/auth.py +++ b/rhodecode/lib/auth.py @@ -501,13 +501,12 @@ def set_available_permissions(config): try: sa = meta.Session all_perms = sa.query(Permission).all() + config['available_permissions'] = [x.permission_name for x in all_perms] except Exception: - pass + log.error(traceback.format_exc()) finally: meta.Session.remove() - config['available_permissions'] = [x.permission_name for x in all_perms] - #============================================================================== # CHECK DECORATORS