diff options
Diffstat (limited to 'gn2')
-rw-r--r-- | gn2/wqflask/decorators.py | 2 | ||||
-rw-r--r-- | gn2/wqflask/resource_manager.py | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/gn2/wqflask/decorators.py b/gn2/wqflask/decorators.py index d2224d1a..848f03ec 100644 --- a/gn2/wqflask/decorators.py +++ b/gn2/wqflask/decorators.py @@ -5,11 +5,9 @@ from functools import wraps from urllib.parse import urljoin from typing import Dict, Callable -import redis from flask import g, flash, request, url_for, redirect, current_app from gn3.authentication import AdminRole -from gn3.authentication import DataRole from gn2.wqflask.oauth2 import client from gn2.wqflask.oauth2.session import session_info diff --git a/gn2/wqflask/resource_manager.py b/gn2/wqflask/resource_manager.py index de397747..55b9cbb3 100644 --- a/gn2/wqflask/resource_manager.py +++ b/gn2/wqflask/resource_manager.py @@ -1,6 +1,5 @@ import json import redis -import requests from flask import Blueprint from flask import current_app @@ -13,11 +12,9 @@ from flask import url_for from gn3.authentication import AdminRole from gn3.authentication import DataRole -from gn3.authentication import get_user_membership from gn3.authentication import get_highest_user_access_role -from typing import Dict, Tuple -from urllib.parse import urljoin +from typing import Dict from gn2.wqflask.decorators import edit_admins_access_required from gn2.wqflask.decorators import login_required @@ -96,7 +93,6 @@ def view_resource(resource_id: str): @resource_management.route("/resources/<resource_id>/make-public", methods=('POST',)) -@edit_access_required @login_required() def update_resource_publicity(resource_id: str): redis_conn = redis.from_url( |