Skip to content

Commit

Permalink
feat: remove one org limit per user (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-chaturvedi authored Oct 16, 2023
1 parent 47fb795 commit 2bacc55
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/backend/graphene/mutations/organisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class Arguments:
def mutate(cls, root, info, id, name, identity_key, wrapped_keyring, wrapped_recovery):
if Organisation.objects.filter(name__iexact=name).exists():
raise GraphQLError('This organisation name is not available.')
if OrganisationMember.objects.filter(user_id=info.context.user.userId, role=OrganisationMember.OWNER).exists():
raise GraphQLError(
'Your current plan only supports one organisation.')

owner = CustomUser.objects.get(userId=info.context.user.userId)
org = Organisation.objects.create(
Expand Down

0 comments on commit 2bacc55

Please sign in to comment.