mirror of
https://github.com/portainer/portainer.git
synced 2026-08-07 10:54:48 +00:00
fix(teammberships): fix team membership listing for team leaders BE-13206 (#3204)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user