From 7509ee9cfcae0a1b2bb18fbc942af100f366e6f3 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Mon, 27 Aug 2018 14:50:39 -0400 Subject: [PATCH] formatting magic --- atst/routes/workspaces.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/atst/routes/workspaces.py b/atst/routes/workspaces.py index bafa86cd..fcc5f7ae 100644 --- a/atst/routes/workspaces.py +++ b/atst/routes/workspaces.py @@ -17,6 +17,7 @@ from atst.models.permissions import Permissions bp = Blueprint("workspaces", __name__) + @bp.context_processor def workspace(): workspace = None @@ -30,14 +31,13 @@ def workspace(): def user_can(permission): if workspace: - return Authorization.has_workspace_permission(g.current_user, workspace, permission) + return Authorization.has_workspace_permission( + g.current_user, workspace, permission + ) return False - return { - "workspace": workspace, - "permissions": Permissions, - "user_can": user_can - } + return {"workspace": workspace, "permissions": Permissions, "user_can": user_can} + @bp.route("/workspaces") def workspaces():