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

Method HasLink

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

HasLink determines whether a link exists between two roles. role: name1 inherits role: name2. domain is a prefix to the roles (can be used for other purposes).

(name1 string, name2 string, domain ...string)

Source from the content-addressed store, hash-verified

33 // HasLink determines whether a link exists between two roles. role: name1 inherits role: name2.
34 // domain is a prefix to the roles (can be used for other purposes).
35 HasLink(name1 string, name2 string, domain ...string) (bool, error)
36 // GetRoles gets the roles that a user inherits.
37 // domain is a prefix to the roles (can be used for other purposes).
38 GetRoles(name string, domain ...string) ([]string, error)

Implementers 3

RoleManagerImplrbac/default-role-manager/role_manager
DomainManagerrbac/default-role-manager/role_manager

Calls

no outgoing calls