Skip to content

Commit

Permalink
Fix #345 use getUserName instead of getMemberId to avoid error with A…
Browse files Browse the repository at this point in the history
…nonymous
  • Loading branch information
ebrehault committed Jun 27, 2013
1 parent be377a1 commit 56263de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Products/CMFPlomino/PlominoAccessControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def getCurrentMember(self):
def getCurrentUserId(self):
""" Returns the current user id.
"""
return self.getCurrentMember().getMemberId()
return self.getCurrentMember().getUserName()

security.declarePublic('getCurrentUserGroups')
def getCurrentUserGroups(self):
Expand All @@ -209,7 +209,7 @@ def getCurrentUserRights(self):
""" Returns the current user Plomino rights.
"""
try:
userid = self.getCurrentMember().getMemberId()
userid = self.getCurrentUserId()
rights = self.get_local_roles_for_userid(userid)

# we append group rights
Expand Down

0 comments on commit 56263de

Please sign in to comment.