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

Method SelfAddPoliciesExCtx

enforcer_context.go:383–385  ·  view source on GitHub ↗
(ctx context.Context, sec string, ptype string, rules [][]string)

Source from the content-addressed store, hash-verified

381}
382
383func (e *ContextEnforcer) SelfAddPoliciesExCtx(ctx context.Context, sec string, ptype string, rules [][]string) (bool, error) {
384 return e.addPoliciesWithoutNotifyCtx(ctx, sec, ptype, rules, true)
385}
386
387// SelfRemovePolicyCtx removes a policy rule from the current policy with context.
388func (e *ContextEnforcer) SelfRemovePolicyCtx(ctx context.Context, sec string, ptype string, rule []string) (bool, error) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected