Commit 8eb417cb authored by Jean-Paul Smets's avatar Jean-Paul Smets

Fixed typo. Added support for internal role.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4204 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 297de379
......@@ -68,7 +68,7 @@ class ERP5GroupManager(BasePlugin):
# because we aren't logged in, we have to create our own
# SecurityManager to be able to access the Catalog
newSecurityManager(self, self.getPortalObject().getOwner())
base_category_list = self.getPortalObject().getPortalAssignmentsBaseCategoryList()
base_category_list = self.getPortalObject().getPortalAssignmentBaseCategoryList()
user_name = principal.getId()
......
......@@ -107,10 +107,13 @@ class ERP5UserManager(BasePlugin):
for user_name in t_id:
user = getattr(person_module, user_name, None)
if user:
user_objects.append(user)
if user.getCareerRole() == 'internal':
user_objects.append(user)
elif login:
user_objects.extend(self.getUserByLogin(login))
for user in self.getUserByLogin(login):
if user.getCareerRole() == 'internal':
user_objects.append(user)
for user in user_objects:
LOG('enumerateUsers', 0, user.getId())
......
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