feat(addons): deny team access to Portainer, redirect to Portainer-Run [R8S-1192] (#3264)

This commit is contained in:
RHCowan
2026-07-27 17:00:17 +12:00
committed by GitHub
parent c67a5031c8
commit 0852cf7f8f
5 changed files with 17 additions and 0 deletions
+5
View File
@@ -15554,6 +15554,11 @@ components:
type: object type: object
portainer.Team: portainer.Team:
properties: properties:
DenyPortainerAccess:
description: Whether members of this team are denied access to Portainer itself
(EE only)
example: false
type: boolean
Id: Id:
description: Team Identifier description: Team Identifier
example: 1 example: 1
+5
View File
@@ -4543,6 +4543,11 @@ definitions:
type: object type: object
portainer.Team: portainer.Team:
properties: properties:
DenyPortainerAccess:
description: Whether members of this team are denied access to Portainer itself
(EE only)
example: false
type: boolean
Id: Id:
description: Team Identifier description: Team Identifier
example: 1 example: 1
+2
View File
@@ -1398,6 +1398,8 @@ type (
ID TeamID `json:"Id" example:"1"` ID TeamID `json:"Id" example:"1"`
// Team name // Team name
Name string `json:"Name" example:"developers"` Name string `json:"Name" example:"developers"`
// Whether members of this team are denied access to Portainer itself (EE only)
DenyPortainerAccess bool `json:"DenyPortainerAccess" example:"false"`
} }
// TeamAccessPolicies represent the association of an access policy and a team // TeamAccessPolicies represent the association of an access policy and a team
@@ -3369,6 +3369,10 @@ export type PortainerTag = {
}; };
export type PortainerTeam = { export type PortainerTeam = {
/**
* Whether members of this team are denied access to Portainer itself (EE only)
*/
DenyPortainerAccess?: boolean;
/** /**
* Team Identifier * Team Identifier
*/ */
@@ -1414,6 +1414,7 @@ export const zPortainerTag = z.object({
}); });
export const zPortainerTeam = z.object({ export const zPortainerTeam = z.object({
DenyPortainerAccess: z.boolean().optional(),
Id: z.int().optional(), Id: z.int().optional(),
Name: z.string().optional(), Name: z.string().optional(),
}); });