Example #1
0
 def current_user(self):
     user = api.get_current_user()
     # XXX: we're missing here LDAP properties!
     #      needs to be fixed in the API.
     properties = api.get_user_properties(user)
     properties.update({
         "userid": user.getId(),
         "username": user.getUserName(),
         "roles": user.getRoles(),
         "email": user.getProperty("email"),
         "fullname": user.getProperty("fullname"),
     })
     return properties
Example #2
0
 def user(self):
     return api.get_current_user()
Example #3
0
 def current_user(self):
     user = api.get_current_user()
     return api.get_user_properties(user)