From 6342bfbb10eb3ee25a2006272db1643834821567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Wed, 13 Dec 2023 13:37:00 +0100 Subject: [PATCH] refactor: remove useless calls to get_current_user --- web/b3desk/routes.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/web/b3desk/routes.py b/web/b3desk/routes.py index c57dac76..d67f370e 100755 --- a/web/b3desk/routes.py +++ b/web/b3desk/routes.py @@ -197,7 +197,6 @@ def api_meetings(): def insertDocuments(meeting_id): from flask import request - get_current_user() meeting = Meeting.query.get(meeting_id) files_title = request.get_json() secret_key = current_app.config["SECRET_KEY"] @@ -696,7 +695,6 @@ def add_meeting_file_dropzone(title, meeting_id, is_default): def add_meeting_file_URL(url, meeting_id, is_default): - get_current_user() title = url.rsplit("/", 1)[-1] # test MAX_SIZE_UPLOAD for 20Mo @@ -797,8 +795,6 @@ def add_meeting_file_nextcloud(path, meeting_id, is_default): def add_external_meeting_file_nextcloud(path, meeting_id): - get_current_user() - externalMeetingFile = MeetingFilesExternal() externalMeetingFile.title = path