fix: UserByIDAndResourceOwner query (#2340)

This commit is contained in:
Livio Amstutz 2021-09-09 13:10:06 +02:00 committed by GitHub
parent 45ebd16226
commit 257bf90f7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ func UserByIDAndResourceOwner(db *gorm.DB, table, userID, resourceOwner string)
user := new(model.UserView) user := new(model.UserView)
userIDQuery := &model.UserSearchQuery{ userIDQuery := &model.UserSearchQuery{
Key: usr_model.UserSearchKeyUserID, Key: usr_model.UserSearchKeyUserID,
Method: domain.SearchMethodListContains, Method: domain.SearchMethodEquals,
Value: userID, Value: userID,
} }
resourceOwnerQuery := &model.UserSearchQuery{ resourceOwnerQuery := &model.UserSearchQuery{