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

Method SetLinkConditionFuncParams

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

SetLinkConditionFuncParams Sets the parameters of the condition function fn for Link userName->roleName

(userName, roleName string, params ...string)

Source from the content-addressed store, hash-verified

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},
75 // when fn returns true, Link is valid, otherwise invalid
76 AddDomainLinkConditionFunc(user string, role string, domain string, fn LinkConditionFunc)

Implementers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected