mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-17 21:37:35 +00:00
74688394d8
* docs: add scope to request private labeling * feat: add enum to project * fix: remove unused code, add private labeling setting to query side * fix: set private labeling depending on setting * fix: private labeling depending on project setting * Update proto/zitadel/management.proto Co-authored-by: Livio Amstutz <livio.a@gmail.com> * fix: rename sql file * fix: private labeling setting Co-authored-by: Livio Amstutz <livio.a@gmail.com>
38 lines
759 B
Go
38 lines
759 B
Go
package domain
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/eventstore/v1/models"
|
|
)
|
|
|
|
type Project struct {
|
|
models.ObjectRoot
|
|
|
|
State ProjectState
|
|
Name string
|
|
ProjectRoleAssertion bool
|
|
ProjectRoleCheck bool
|
|
HasProjectCheck bool
|
|
PrivateLabelingSetting PrivateLabelingSetting
|
|
}
|
|
|
|
type ProjectState int32
|
|
|
|
const (
|
|
ProjectStateUnspecified ProjectState = iota
|
|
ProjectStateActive
|
|
ProjectStateInactive
|
|
ProjectStateRemoved
|
|
)
|
|
|
|
type PrivateLabelingSetting int32
|
|
|
|
const (
|
|
PrivateLabelingSettingUnspecified PrivateLabelingSetting = iota
|
|
PrivateLabelingSettingEnforceProjectResourceOwnerPolicy
|
|
PrivateLabelingSettingAllowLoginUserResourceOwnerPolicy
|
|
)
|
|
|
|
func (o *Project) IsValid() bool {
|
|
return o.Name != ""
|
|
}
|