Skip to content

Commit

Permalink
refactor: remove useless calls to get_current_user
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Dec 13, 2023
1 parent 6ae0442 commit 6342bfb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions web/b3desk/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6342bfb

Please sign in to comment.