IsTeamInternal checks if the team has the internal flag set We store this in the configuration on team switch.
(ctx context.Context, team string)
| 72 | // IsTeamInternal checks if the team has the internal flag set |
| 73 | // We store this in the configuration on team switch. |
| 74 | func IsTeamInternal(ctx context.Context, team string) (bool, error) { |
| 75 | internalStr, err := config.GetValue("team_internal") |
| 76 | if err != nil { |
| 77 | return false, fmt.Errorf("could not get team internal flag: %w", err) |
| 78 | } |
| 79 | |
| 80 | return internalStr == "true", nil |
| 81 | } |