PR comments config
This commit is contained in:
parent
e0cdf64c33
commit
dc8cea6d57
|
@ -288,7 +288,10 @@ func (c *UserConsentOptions) Defaults() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *UserConsentOptions) Verify(configErrors *ConfigErrors, isMonolith bool) {
|
func (c *UserConsentOptions) Verify(configErrors *ConfigErrors, isMonolith bool) {
|
||||||
if c.Enabled {
|
if !c.Enabled {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
checkNotEmpty(configErrors, "template_dir", c.TemplateDir)
|
checkNotEmpty(configErrors, "template_dir", c.TemplateDir)
|
||||||
checkNotEmpty(configErrors, "version", c.Version)
|
checkNotEmpty(configErrors, "version", c.Version)
|
||||||
checkNotEmpty(configErrors, "policy_name", c.PolicyName)
|
checkNotEmpty(configErrors, "policy_name", c.PolicyName)
|
||||||
|
@ -320,7 +323,6 @@ func (c *UserConsentOptions) Verify(configErrors *ConfigErrors, isMonolith bool)
|
||||||
configErrors.Add(fmt.Sprintf("unable to load defined '%s' policy template", c.Version))
|
configErrors.Add(fmt.Sprintf("unable to load defined '%s' policy template", c.Version))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// PresenceOptions defines possible configurations for presence events.
|
// PresenceOptions defines possible configurations for presence events.
|
||||||
type PresenceOptions struct {
|
type PresenceOptions struct {
|
||||||
|
|
Loading…
Reference in a new issue