Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict adding users to members list if already subscribed to another plan #124

Open
reyraa opened this issue May 28, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@reyraa
Copy link
Member

reyraa commented May 28, 2023

Description

With the current block code, users can add any other users to the members list of their subscription. This might be problematic for users who already have a more desirable subscription.
To prevent inconvenience, we should only allow users to add other users to the members list of their subscriptions if they are not already a member of another subscription.

Acceptance Criteria

  • Users can only be a member of one subscription at a time.
  • Users should be able to update the members list of their subscription only if all new users are not members of another subscription.
  • The transaction should fail if at least one of the new members are already a member of another subscription.
  • Sufficient unit test is required.
@reyraa reyraa added the enhancement New feature or request label May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant