Skip to content

Commit

Permalink
Fix failing test_create_experimenter_roles
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jul 2, 2018
1 parent e3dc0ae commit 67a67cc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,10 @@ def createExperimenter(self, omeName, firstName, lastName, email, isAdmin,

defaultGroup = ExperimenterGroupI(defaultGroupId, False)

if privileges is not None:
if isAdmin:
if privileges is None:
privileges = []

if defaultGroupId not in otherGroupIds:
listOfGroups.append(ExperimenterGroupI(defaultGroupId, False))

Expand Down

0 comments on commit 67a67cc

Please sign in to comment.