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

FIx order when validating account settings #1632

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

pascal-fischer
Copy link
Contributor

Describe your changes

The settings validation was moved behind the user permission check to avoid unnecessary validation in case the user is not allowed to update the settings anyway.

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@pascal-fischer pascal-fischer merged commit b085419 into main Feb 27, 2024
16 checks passed
@pascal-fischer pascal-fischer deleted the fix/order-when-validating-account-settings branch February 27, 2024 13:17
Foosec pushed a commit to Foosec/netbird that referenced this pull request May 8, 2024
* moved extraSettings validation to the end

* moved extraSettings validation directly after permission check
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