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
def user(self): return api.get_current_user()
def current_user(self): user = api.get_current_user() return api.get_user_properties(user)