[PR #364] [MERGED] Check if new account ID is already being used #12539

Closed
opened 2026-08-05 02:06:08 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/364
Author: @mlsmaycon
Created: 6/18/2022
Status: Merged
Merged: 6/20/2022
Merged by: @braginini

Base: mainHead: check-new-acc-id


📝 Commits (8)

  • bb766db add .run to gitignore
  • d34b27a Check if new account id is already being used
  • 07e6e67 Prevent account domain update if non admin user
  • dad33d7 Remove temp files
  • 0d83f51 Rename method and update error message
  • da6632d Changed NewAccount to method
  • d9cca0b userID as method parameter
  • 072519d Explain why we retry

📊 Changes

5 files changed (+49 additions, -15 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 management/server/account.go (+37 -10)
📝 management/server/account_test.go (+2 -1)
📝 management/server/file_store_test.go (+2 -2)
📝 management/server/user.go (+7 -2)

📄 Description

Check if the new account ID is already being used

Modify domain only if use is the account admin


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/364 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 6/18/2022 **Status:** ✅ Merged **Merged:** 6/20/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `check-new-acc-id` --- ### 📝 Commits (8) - [`bb766db`](https://github.com/netbirdio/netbird/commit/bb766dbbe05d6cea53423742a886e2964c824abe) add .run to gitignore - [`d34b27a`](https://github.com/netbirdio/netbird/commit/d34b27aa196f749f241faaa816942f291c4cbc13) Check if new account id is already being used - [`07e6e67`](https://github.com/netbirdio/netbird/commit/07e6e6735487642f9b656788c9a864a8713db29d) Prevent account domain update if non admin user - [`dad33d7`](https://github.com/netbirdio/netbird/commit/dad33d722a86d3a2ad8418b09e7cc73f7df54778) Remove temp files - [`0d83f51`](https://github.com/netbirdio/netbird/commit/0d83f5136119239855266d896b2249e6aaa8603e) Rename method and update error message - [`da6632d`](https://github.com/netbirdio/netbird/commit/da6632d29fd31303f83012ca706c5dff7770795f) Changed NewAccount to method - [`d9cca0b`](https://github.com/netbirdio/netbird/commit/d9cca0bf6985185629b6a26ee55b9fa86fcce3a9) userID as method parameter - [`072519d`](https://github.com/netbirdio/netbird/commit/072519d283dfe59e6c314b1b91267ae2670c84d0) Explain why we retry ### 📊 Changes **5 files changed** (+49 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `management/server/account.go` (+37 -10) 📝 `management/server/account_test.go` (+2 -1) 📝 `management/server/file_store_test.go` (+2 -2) 📝 `management/server/user.go` (+7 -2) </details> ### 📄 Description Check if the new account ID is already being used Modify domain only if use is the account admin --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:06:08 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#12539