FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit cbbe12b2 authored by Dr Abraham Martin's avatar Dr Abraham Martin
Browse files

code review

parent 00b3a247
No related branches found
No related tags found
1 merge request!12create self endpoint to get the getPerson information of the user logged in
......@@ -132,7 +132,6 @@ class Person(ViewPermissionsMixin, generics.RetrieveAPIView):
if scheme == "token" and identifier == "self":
if self.request.user.is_authenticated:
scheme, identifier = self.request.user.username.split(":")
return _get_or_404(ibis.get_person_methods().getPerson(scheme, identifier, fetch))
else:
raise Http404("You are not authenticated")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment