mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
13 lines
481 B
Go
13 lines
481 B
Go
|
package user
|
||
|
|
||
|
import "github.com/zitadel/zitadel/internal/api/grpc/server/middleware"
|
||
|
|
||
|
// OrganisationFromRequest implements deprecated [middleware.OrganisationFromRequest] interface.
|
||
|
// it will be removed before going GA (https://github.com/zitadel/zitadel/issues/6718)
|
||
|
func (r *AddHumanUserRequest) OrganisationFromRequest() *middleware.Organization {
|
||
|
return &middleware.Organization{
|
||
|
ID: r.GetOrganisation().GetOrgId(),
|
||
|
Domain: r.GetOrganisation().GetOrgDomain(),
|
||
|
}
|
||
|
}
|