Commit 583d2ce8 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

PermissionTool: prevent infinit error loop when db is not available

parent 940f6296
......@@ -53,7 +53,9 @@ class PermissionTool(cherrypy.Tool):
# some variables
req = cherrypy.request
session = req.db
session = getattr(req, "db", None)
if session is None:
return
if not project:
projectName = vispa.config("usermanagement", "global_project", None)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment