Commit 7b4bc784 authored by John Red Medrano's avatar John Red Medrano

added checking on utils helper, check the endpoint.endpoint_url to check if...

added checking on utils helper, check the endpoint.endpoint_url to check if its current-user to disregard checking on permission
parent c2fb895d
......@@ -104,6 +104,15 @@ class Helper:
"endpoint": str(endpoint.id)
# "user": str(endpoint.name),
}
# print(endpoint.endpoint_url)
# last = full_path.split('/')
# print(last)
# print(f'{full_path},dddd')
# print(request)
# print(self._headers)
if endpoint.endpoint_url == 'current-user':
return self._request_method(request, final_endpoint,
self._headers)
req = requests.post(VALIDATE_TOKEN_URL,
headers=self._headers)
all_headers = {**req.headers, **self._headers}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment