diff --git a/auth/permissions.py b/auth/permissions.py index b95138d08..c90c75e04 100644 --- a/auth/permissions.py +++ b/auth/permissions.py @@ -118,8 +118,8 @@ class OrganizationMemberPermission(Permission): class ViewTeamPermission(Permission): def __init__(self, org_name, team_name): team_admin = _TeamNeed(org_name, team_name, 'admin') - team_creator = _TeamNeed(org_name, 'creator') - team_member = _TeamNeed(org_name, 'member') + team_creator = _TeamNeed(org_name, team_name, 'creator') + team_member = _TeamNeed(org_name, team_name, 'member') super(ViewTeamPermission, self).__init__(team_admin, team_creator, team_member)