[PR #571] [MERGED] Display peers that user has access too in the API #12757

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/571
Author: @braginini
Created: 11/21/2022
Status: Merged
Merged: 11/21/2022
Merged by: @braginini

Base: mainHead: feature/return_peers_with_access


📝 Commits (2)

  • 68a5350 Display peers of a user that it has access to
  • 81185f3 Remove redundant code

📊 Changes

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

View changed files

📝 management/server/peer.go (+18 -2)

📄 Description

If a user has a non-admin role, display all peers
that user's peers have access to when calling
/peers endpoint of the HTTP API.


🔄 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/571 **Author:** [@braginini](https://github.com/braginini) **Created:** 11/21/2022 **Status:** ✅ Merged **Merged:** 11/21/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `feature/return_peers_with_access` --- ### 📝 Commits (2) - [`68a5350`](https://github.com/netbirdio/netbird/commit/68a5350e6c609dd72a8ad9e9000a86dbcdbca585) Display peers of a user that it has access to - [`81185f3`](https://github.com/netbirdio/netbird/commit/81185f3984f64e43ce5a111d07f3f725004a20b2) Remove redundant code ### 📊 Changes **1 file changed** (+18 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `management/server/peer.go` (+18 -2) </details> ### 📄 Description If a user has a non-admin role, display all peers that user's peers have access to when calling /peers endpoint of the HTTP API. --- <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:37 -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#12757