MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / domain

Method domain

module/permit/system/iml.go:63–70  ·  view source on GitHub ↗
(ctx *gin.Context)

Source from the content-addressed store, hash-verified

61}
62
63func (m *imlSystemPermitModule) domain(ctx *gin.Context) ([]string, []string, bool) {
64
65 system, err := m.accesses(ctx)
66 if err != nil {
67 return nil, nil, false
68 }
69 return []string{role.GroupSystem}, system, true
70}
71
72func (m *imlSystemPermitModule) OnComplete() {
73 permit.AddDomainHandler(role.GroupSystem, m.domain)

Callers

nothing calls this directly

Calls 1

accessesMethod · 0.95

Tested by

no test coverage detected