hasAccess

Checks whether a specific role has access with a specific method's permissions on a resource.

static if(isWeb)
bool
hasAccess
(,
HttpMethod method
,
string resource
)

Parameters

role Role

The role.

method HttpMethod

The method.

Return Value

Type: bool

Returns true if the role has access, false otherwise.

Meta