Skip to content

Commit

Permalink
check_sharepoint_access annotation added to sharepoint_upload endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
hdavid03 committed Sep 22, 2023
1 parent 4fea982 commit 9936237
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions analogic/authentication_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pandas as pd
from abc import ABC, abstractmethod
from functools import wraps
from werkzeug.datastructures import ImmutableMultiDict
import orjson

pd.set_option('display.float_format', lambda x: '%.3f' % x)
Expand Down Expand Up @@ -135,6 +136,8 @@ def _get_check_access_mdx(self, force_server_side_query=False):
if request.args.get('server') is not None or force_server_side_query is True:
if request.method == 'GET':
body = request.args
elif len(request.form) > 0:
body = request.form.to_dict()
else:
body = orjson.loads(request.data)
key = body.get('key')
Expand Down

0 comments on commit 9936237

Please sign in to comment.