(ctx *gin.Context)
| 63 | } |
| 64 | |
| 65 | func (m *imlTeamPermitModule) domain(ctx *gin.Context) ([]string, []string, bool) { |
| 66 | teamId := ctx.Query("team") |
| 67 | if teamId == "" { |
| 68 | return nil, nil, false |
| 69 | } |
| 70 | accesses, err := m.accesses(ctx, teamId) |
| 71 | if err != nil { |
| 72 | return nil, nil, false |
| 73 | } |
| 74 | return []string{role.GroupTeam}, accesses, true |
| 75 | } |