Role.hasPermission

Checks whether the role has permission to a specific resource.

class Role
final
bool
hasPermission

Parameters

resource string

The resource.

permission PermissionType

The permission.

Return Value

Type: bool

True if the role has permission, false otherwise.

Meta