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

Method copyFrom

rbac/default-role-manager/role_manager.go:757–762  ·  view source on GitHub ↗
(other *ConditionalRoleManager)

Source from the content-addressed store, hash-verified

755}
756
757func (crm *ConditionalRoleManager) copyFrom(other *ConditionalRoleManager) {
758 other.Range(func(name1, name2 string, domain ...string) bool {
759 _ = crm.AddLink(name1, name2, domain...)
760 return true
761 })
762}
763
764// use this constructor to avoid rebuild of AddMatchingFunc.
765func newConditionalRoleManagerWithMatchingFunc(maxHierarchyLevel int, fn rbac.MatchingFunc) *ConditionalRoleManager {

Callers 1

Implementers 3

ConditionalRoleManagerrbac/default-role-manager/role_manager
ConditionalDomainManagerrbac/default-role-manager/role_manager

Calls 2

RangeMethod · 0.65
AddLinkMethod · 0.65

Tested by

no test coverage detected