diamond.authentication.permissions

Copyright © DiamondMVC 2019

Members

Classes

Permission
class Permission

Wrapper around permissions.

Enums

PermissionType
enum PermissionType

Enumeration of permission types.

Functions

hasAccess
bool hasAccess(Role role, HttpMethod method, string resource)

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

requirePermissionMethod
void requirePermissionMethod(HttpMethod method, PermissionType permission)

Requires a permission for a http method.

unrequirePermissionMethod
void unrequirePermissionMethod(HttpMethod method, PermissionType permission)

Unrequires a permission for a http method.

Static variables

defaultPermission
bool defaultPermission;

Boolean for the default permission access.

Meta

Authors

Jacob Jensen (bausshf)