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

Method SelfAddPolicy

enforcer_synced.go:640–644  ·  view source on GitHub ↗
(sec string, ptype string, rule []string)

Source from the content-addressed store, hash-verified

638}
639
640func (e *SyncedEnforcer) SelfAddPolicy(sec string, ptype string, rule []string) (bool, error) {
641 e.m.Lock()
642 defer e.m.Unlock()
643 return e.Enforcer.SelfAddPolicy(sec, ptype, rule)
644}
645
646func (e *SyncedEnforcer) SelfAddPolicies(sec string, ptype string, rules [][]string) (bool, error) {
647 e.m.Lock()

Calls 1

SelfAddPolicyMethod · 0.65