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

Method AddLinkConditionFunc

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

AddLinkConditionFunc Add condition function fn for Link userName->roleName, when fn returns true, Link is valid, otherwise invalid

(userName, roleName string, fn LinkConditionFunc)

Source from the content-addressed store, hash-verified

69 // AddLinkConditionFunc Add condition function fn for Link userName->roleName,
70 // when fn returns true, Link is valid, otherwise invalid
71 AddLinkConditionFunc(userName, roleName string, fn LinkConditionFunc)
72 // SetLinkConditionFuncParams Sets the parameters of the condition function fn for Link userName->roleName
73 SetLinkConditionFuncParams(userName, roleName string, params ...string)
74 // AddDomainLinkConditionFunc Add condition function fn for Link userName-> {roleName, domain},

Callers 2

AddLinkConditionFuncMethod · 0.65

Implementers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected