MCPcopy Index your code
hub / github.com/apache/casbin / hasSection

Method hasSection

model/model.go:209–212  ·  view source on GitHub ↗
(sec string)

Source from the content-addressed store, hash-verified

207}
208
209func (model Model) hasSection(sec string) bool {
210 section := model[sec]
211 return section != nil
212}
213
214func (model Model) GetAssertion(sec string, ptype string) (*Assertion, error) {
215 if model[sec] == nil {

Callers 2

loadModelFromConfigMethod · 0.95
TestHasSectionFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestHasSectionFunction · 0.76