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

Organizations: Extend validation and errors #8295

Merged
merged 5 commits into from
Dec 27, 2024

Conversation

viren-nadkarni
Copy link
Contributor

@viren-nadkarni viren-nadkarni commented Nov 6, 2024

This PR brings some improvements to organizations by implementing validations for running certain operations.

  • CreateOrganization can only be called if the calling account does not already own an org
  • DeleteOrganization can only be called if the calling account owns an org
  • CreateAccount and CloseAccount can only be called if the calling account owns the org

Related to #8260

@viren-nadkarni viren-nadkarni marked this pull request as ready for review December 27, 2024 11:10
Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice - thank you @viren-nadkarni!

@bblommers bblommers added this to the 5.0.26 milestone Dec 27, 2024
@bblommers bblommers merged commit 249d8e2 into getmoto:master Dec 27, 2024
46 of 51 checks passed
@viren-nadkarni viren-nadkarni deleted the organizations-exc branch December 30, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants