Role

Wrapper around a role.

Members

Functions

addPermission
Role addPermission(string resource, bool readAccess, bool writeAccess, bool updateAccess, bool deleteAccess)

Adds a permission to the role.

hasPermission
bool hasPermission(string resource, PermissionType permission)

Checks whether the role has permission to a specific resource.

Properties

name
string name [@property getter]

Gets the name.

parent
Role parent [@property getter]

Gets the parent.

Meta