add OidcIDto teams

This commit is contained in:
viehlieb 2023-01-27 13:31:43 +01:00
parent a7565513d7
commit 8a10f5bd8a
2 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func (tm *TeamMember) Create(s *xorm.Session, a web.Auth) (err error) {
// Check if that user is already part of the team
exists, err := s.
Where("team_id = ? AND user_name = ?", tm.TeamID, tm.UserID).
Where("team_id = ? AND user_id = ?", tm.TeamID, tm.UserID).
Get(&TeamMember{})
if err != nil {
return

View File

@ -20,6 +20,7 @@ import (
"time"
"code.vikunja.io/api/pkg/db"
"code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/events"
"code.vikunja.io/api/pkg/user"