1
0
mirror of https://github.com/zitadel/zitadel.git synced 2024-12-26 09:37:47 +00:00

15 lines
453 B
Go
Raw Normal View History

package command
import "github.com/zitadel/zitadel/internal/domain"
func userGrantWriteModelToUserGrant(writeModel *UserGrantWriteModel) *domain.UserGrant {
return &domain.UserGrant{
ObjectRoot: writeModelToObjectRoot(writeModel.WriteModel),
UserID: writeModel.UserID,
ProjectID: writeModel.ProjectID,
ProjectGrantID: writeModel.ProjectGrantID,
RoleKeys: writeModel.RoleKeys,
State: writeModel.State,
}
}