MCPcopy Create free account
hub / github.com/belak/gitdir / validateAdmins

Method validateAdmins

config_validate.go:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (c *Config) validateAdmins() error {
38 for _, user := range c.Users {
39 if user.IsAdmin {
40 return nil
41 }
42 }
43
44 return errors.New("no admins defined")
45}
46
47func (c *Config) validateGroupLoop() error {
48 errors := make([]error, 0, len(c.Groups))

Callers 1

ValidateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected