fix(api): use (provided) organisation instead of resourceOwner of caller (#6714)

This commit is contained in:
Livio Spring
2023-10-12 11:00:36 +03:00
committed by GitHub
parent ef18cd2e2c
commit a272b1201f
5 changed files with 12 additions and 12 deletions

View File

@@ -48,7 +48,7 @@ func notificationTypeToDomain(notificationType user.NotificationType) domain.Not
}
func (s *Server) SetPassword(ctx context.Context, req *user.SetPasswordRequest) (_ *user.SetPasswordResponse, err error) {
var resourceOwner = authz.GetCtxData(ctx).ResourceOwner
var resourceOwner = authz.GetCtxData(ctx).OrgID
var details *domain.ObjectDetails
switch v := req.GetVerification().(type) {