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

Method GetRolesForUser

enforcer_interface.go:65–65  ·  view source on GitHub ↗

* RBAC API */

(name string, domain ...string)

Source from the content-addressed store, hash-verified

63
64 /* RBAC API */
65 GetRolesForUser(name string, domain ...string) ([]string, error)
66 GetUsersForRole(name string, domain ...string) ([]string, error)
67 HasRoleForUser(name string, role string, domain ...string) (bool, error)
68 AddRoleForUser(user string, role string, domain ...string) (bool, error)

Callers 2

GetRolesForUserMethod · 0.65
testGetRolesFunction · 0.65

Implementers 1

Enforcerenforcer.go

Calls

no outgoing calls

Tested by 1

testGetRolesFunction · 0.52