1
0

chore(auth): refactor openid team creation

This commit is contained in:
kolaente
2024-03-02 15:22:37 +01:00
parent 10ff864e0c
commit 4f1f96f1e9
2 changed files with 28 additions and 24 deletions

View File

@ -88,14 +88,14 @@ func (*TeamMember) TableName() string {
// TeamUser is the team member type
type TeamUser struct {
user.User `xorm:"extends"`
// Whether or not the member is an admin of the team. See the docs for more about what a team admin can do
// Whether the member is an admin of the team. See the docs for more about what a team admin can do
Admin bool `json:"admin"`
TeamID int64 `json:"-"`
}
// OIDCTeamData is the relevant data for a team and is delivered by oidc token
type OIDCTeamData struct {
TeamName string
// OIDCTeam is the relevant data for a team and is delivered by oidc token
type OIDCTeam struct {
Name string
OidcID string
Description string
}