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

Method AddDomainLinkConditionFunc

rbac/role_manager.go:76–76  ·  view source on GitHub ↗

AddDomainLinkConditionFunc Add condition function fn for Link userName-> {roleName, domain}, when fn returns true, Link is valid, otherwise invalid

(user string, role string, domain string, fn LinkConditionFunc)

Source from the content-addressed store, hash-verified

74 // AddDomainLinkConditionFunc Add condition function fn for Link userName-> {roleName, domain},
75 // when fn returns true, Link is valid, otherwise invalid
76 AddDomainLinkConditionFunc(user string, role string, domain string, fn LinkConditionFunc)
77 // SetDomainLinkConditionFuncParams Sets the parameters of the condition function fn
78 // for Link userName->{roleName, domain}
79 SetDomainLinkConditionFuncParams(user string, role string, domain string, params ...string)

Implementers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected