fix(teammberships): fix team membership listing for team leaders BE-13206 (#3204)

This commit is contained in:
andres-portainer
2026-07-17 09:18:37 -03:00
committed by GitHub
parent 4d49bad2a0
commit 8d573cd0de
9 changed files with 172 additions and 25 deletions
+6 -6
View File
@@ -9203,9 +9203,9 @@ paths:
get:
description: >-
List team memberships. Access is only available to administrators and
team leaders.
team leaders. Team leaders only see memberships of teams they lead.
**Access policy**: administrator
**Access policy**: administrator or team leader
operationId: TeamMembershipList
responses:
"200":
@@ -9231,9 +9231,9 @@ paths:
post:
description: >-
Create a new team memberships. Access is only available to
administrators leaders of the associated team.
administrators or leaders of the associated team.
**Access policy**: administrator
**Access policy**: administrator or leaders of the associated team
operationId: TeamMembershipCreate
requestBody:
content:
@@ -9266,10 +9266,10 @@ paths:
"/team_memberships/{id}":
delete:
description: >-
Remove a team membership. Access is only available to administrators
Remove a team membership. Access is only available to administrators or
leaders of the associated team.
**Access policy**: administrator
**Access policy**: administrator or leaders of the associated team
operationId: TeamMembershipDelete
parameters:
- description: TeamMembership identifier
+6 -6
View File
@@ -18543,8 +18543,8 @@ paths:
/team_memberships:
get:
description: |-
List team memberships. Access is only available to administrators and team leaders.
**Access policy**: administrator
List team memberships. Access is only available to administrators and team leaders. Team leaders only see memberships of teams they lead.
**Access policy**: administrator or team leader
operationId: TeamMembershipList
produces:
- application/json
@@ -18571,8 +18571,8 @@ paths:
consumes:
- application/json
description: |-
Create a new team memberships. Access is only available to administrators leaders of the associated team.
**Access policy**: administrator
Create a new team memberships. Access is only available to administrators or leaders of the associated team.
**Access policy**: administrator or leaders of the associated team
operationId: TeamMembershipCreate
parameters:
- description: Team membership details
@@ -18605,8 +18605,8 @@ paths:
/team_memberships/{id}:
delete:
description: |-
Remove a team membership. Access is only available to administrators leaders of the associated team.
**Access policy**: administrator
Remove a team membership. Access is only available to administrators or leaders of the associated team.
**Access policy**: administrator or leaders of the associated team
operationId: TeamMembershipDelete
parameters:
- description: TeamMembership identifier