minor changes in teams.go and consistent attribute renaming in openid.md
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
viehlieb 2023-11-08 12:41:03 +01:00
parent 317f17eaaa
commit c9869c7e96
2 changed files with 5 additions and 7 deletions

View File

@ -57,20 +57,20 @@ You should see "(sso: *your_oidcID*)" written next to each team you were asigned
*All examples assume one team called "team 1"*
1. *Token delivers team.name +team.oidc_id and Vikunja team does not exist:* \
New team will be created called "team 1" with attribute oidcId: "33929"
1. *Token delivers team.name +team.oidcID and Vikunja team does not exist:* \
New team will be created called "team 1" with attribute oidcID: "33929"
2. *In Vikunja Team with name "team 1" already exists in vikunja, but has no oidcID set:* \
new team will be created called "team 1" with attribute oidc_id: "33929"
new team will be created called "team 1" with attribute oidcID: "33929"
3. *In Vikunja Team with name "team 1" already exists in vikunja, but has different oidcID set:* \
new team will be created called "team 1" with attribute oidcId: "33929"
new team will be created called "team 1" with attribute oidcID: "33929"
4. *In Vikunja Team with oidcID "33929" already exists in vikunja, but has different name than "team1":* \
new team will be created called "team 1" with attribute oidcId: "33929"
new team will be created called "team 1" with attribute oidcID: "33929"
5. *Scope vikunja_scope is not set:* \

View File

@ -136,8 +136,6 @@ func GetTeamByOidcIDAndName(s *xorm.Session, oidcID string, teamName string) (*T
has, err := s.
Table("teams").
Where("oidc_id = ? AND name = ?", oidcID, teamName).
Asc("id").
Limit(1).
Get(team)
if !has || err != nil {
return nil, ErrOIDCTeamDoesNotExist{teamName, oidcID}