Skip to content

Commit

Permalink
Merge branch 'master' of git.rackster.ch:ipynbsrv/ipynbsrv
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Glatthard committed Aug 6, 2015
2 parents 5cc44f0 + d2ceefb commit ce3146b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ipynbsrv/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ def get_managers(self):
"""
managers = self.admins.all()
if self.creator:
managers.append(self.creator)
if not self.is_admin(self.creator):
managers.append(self.creator)
return managers

def get_members(self):
Expand All @@ -376,7 +377,7 @@ def get_members(self):
members = admins + self.get_users()
if self.creator:
members.append(self.creator)
return set(members)
return list(set(members))

def get_users(self):
"""
Expand Down

0 comments on commit ce3146b

Please sign in to comment.