Skip to content

Commit

Permalink
fix bug in getuserinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
mki-c2c committed Jan 8, 2021
1 parent 561ce8d commit 0315d43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geoportal/geoportailv3_geoportal/views/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ def __init__(self, request):
def get_user_info(self):
if self.request.user is not None:
return {"login": self.request.user.username,
"role": self.request.user.role.name,
"role_id": self.request.user.role.id,
"role": self.request.user.settings_role.name,
"role_id": self.request.user.settings_role.id,
"mymaps_role": getattr(
self.request.user,
'mymaps_role', self.request.user.role.id),
'mymaps_role', self.request.user.settings_role.id),
"mail": getattr(
self.request.user, 'mail',
self.request.user.email),
Expand Down

0 comments on commit 0315d43

Please sign in to comment.