mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:27:42 +00:00
feat: set private labeling setting on project (#2184)
* 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>
This commit is contained in:
@@ -7,11 +7,12 @@ import (
|
||||
type Project struct {
|
||||
models.ObjectRoot
|
||||
|
||||
State ProjectState
|
||||
Name string
|
||||
ProjectRoleAssertion bool
|
||||
ProjectRoleCheck bool
|
||||
HasProjectCheck bool
|
||||
State ProjectState
|
||||
Name string
|
||||
ProjectRoleAssertion bool
|
||||
ProjectRoleCheck bool
|
||||
HasProjectCheck bool
|
||||
PrivateLabelingSetting PrivateLabelingSetting
|
||||
}
|
||||
|
||||
type ProjectState int32
|
||||
@@ -23,6 +24,14 @@ const (
|
||||
ProjectStateRemoved
|
||||
)
|
||||
|
||||
type PrivateLabelingSetting int32
|
||||
|
||||
const (
|
||||
PrivateLabelingSettingUnspecified PrivateLabelingSetting = iota
|
||||
PrivateLabelingSettingEnforceProjectResourceOwnerPolicy
|
||||
PrivateLabelingSettingAllowLoginUserResourceOwnerPolicy
|
||||
)
|
||||
|
||||
func (o *Project) IsValid() bool {
|
||||
return o.Name != ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user