update documentation

This commit is contained in:
Sam
2021-12-01 19:39:45 +01:00
parent 9e7fbd6eb4
commit c4d19089e4
8 changed files with 37 additions and 92 deletions

View File

@ -56,8 +56,8 @@ def verify_user(
current_request: Request, verify_admin: bool
) -> Tuple[Optional[HttpResponse], Optional[User]]:
"""
Return user id, if the provided token is valid and if user has admin
rights if 'verify_admin' is True
Return authenticated user, if the provided token is valid and user has
admin rights if 'verify_admin' is True
"""
default_message = 'provide a valid auth token'
auth_header = current_request.headers.get('Authorization')