MCPcopy
hub / github.com/apache/casbin / shouldPersist

Method shouldPersist

internal_api.go:30–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28)
29
30func (e *Enforcer) shouldPersist() bool {
31 return e.adapter != nil && e.autoSave
32}
33
34func (e *Enforcer) shouldNotify() bool {
35 return e.watcher != nil && e.autoNotifyWatcher

Calls

no outgoing calls

Tested by

no test coverage detected