From 079d3c4e9cdf9d298e7772d66b394bee51746dcf Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Wed, 9 Jan 2019 10:13:18 -0500 Subject: [PATCH] Remove duplicated authorization check from the route --- atst/routes/workspaces/index.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/atst/routes/workspaces/index.py b/atst/routes/workspaces/index.py index d8ba7159..063f66f5 100644 --- a/atst/routes/workspaces/index.py +++ b/atst/routes/workspaces/index.py @@ -87,12 +87,6 @@ def workspace_reports(workspace_id): @workspaces_bp.route("/workspaces//activity") def workspace_activity(workspace_id): workspace = Workspaces.get(g.current_user, workspace_id) - Authorization.check_workspace_permission( - g.current_user, - workspace, - Permissions.VIEW_WORKSPACE_AUDIT_LOG, - "view workspace reports", - ) pagination_opts = Paginator.get_pagination_opts(http_request) audit_events = AuditLog.get_workspace_events( g.current_user, workspace, pagination_opts