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

Method HasRoleForUser

enforcer_interface.go:67–67  ·  view source on GitHub ↗
(name string, role string, domain ...string)

Source from the content-addressed store, hash-verified

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)
69 AddPermissionForUser(user string, permission ...string) (bool, error)
70 AddPermissionsForUser(user string, permissions ...[]string) (bool, error)

Callers 2

HasRoleForUserMethod · 0.65
testHasRoleFunction · 0.65

Implementers 1

Enforcerenforcer.go

Calls

no outgoing calls

Tested by 1

testHasRoleFunction · 0.52