mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
fix: UserByIDAndResourceOwner query (#2340)
This commit is contained in:
parent
45ebd16226
commit
257bf90f7e
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user