[PR #3667] [MERGED] [management] build user info's remove initiator check #18161

Open
opened 2026-08-05 04:08:11 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3667
Author: @pnmcosta
Created: 4/11/2025
Status: Merged
Merged: 4/15/2025
Merged by: @pnmcosta

Base: feature/get-current-userHead: fix/build-user-infos-remove-initiator-check


📝 Commits (2)

  • 01943a3 [management] build user info's remove initiator check
  • 4a04825 Merge branch 'feature/get-current-user' into fix/build-user-infos-remove-initiator-check

📊 Changes

1 file changed (+9 additions, -18 deletions)

View changed files

📝 management/server/user.go (+9 -18)

📄 Description

Describe your changes

Remove unnecessary initiator role check from the build user info's method. Permissions checks are now handled up the calling stack of this method.

Stack

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

🔄 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/3667 **Author:** [@pnmcosta](https://github.com/pnmcosta) **Created:** 4/11/2025 **Status:** ✅ Merged **Merged:** 4/15/2025 **Merged by:** [@pnmcosta](https://github.com/pnmcosta) **Base:** `feature/get-current-user` ← **Head:** `fix/build-user-infos-remove-initiator-check` --- ### 📝 Commits (2) - [`01943a3`](https://github.com/netbirdio/netbird/commit/01943a378ed582ce8e8c5521eea0205db97684d5) [management] build user info's remove initiator check - [`4a04825`](https://github.com/netbirdio/netbird/commit/4a0482577a07d04c28fe95954a99685c481fbb38) Merge branch 'feature/get-current-user' into fix/build-user-infos-remove-initiator-check ### 📊 Changes **1 file changed** (+9 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `management/server/user.go` (+9 -18) </details> ### 📄 Description ## Describe your changes Remove unnecessary initiator role check from the build user info's method. Permissions checks are now handled up the calling stack of this method. ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [x] 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 --- <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 04:08:11 -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#18161