Commit 4c8a8487 authored by Marcus's avatar Marcus

add primary user group object to user

parent acab03c4
......@@ -40,9 +40,11 @@ class User:
self.data = data if isinstance(data, UserInfo) else UserInfo(data)
self.service_user = backend.User(self.data)
self.service_groups = [backend.Group(grp) for grp in self.data.groups]
self.service_user.primary_group = backend.Group(UserInfo(data).primary_group)
logger.info("/--------------------------------------------------------------------------------\\")
logger.info(F"primary group: {UserInfo(data).primary_group}")
logger.info(F"primary group from service_user: {self.service_user.primary_group}")
logger.info("--------------------------------------------------------------------------------")
logger.info("self.service_groups: ")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment