Nucleus .Net Core CMS

Models.Permission Class

Namespace: Nucleus.Abstractions.Models
Assembly: Nucleus.Abstractions.dll
Represents access rights for Models.Page or Models.PageModule and Role.

Properties

Id Property

Unique record identifier.

RelatedId Property

Id of the entity that the permission applies to.

PermissionType Property

Specifies the access right (PermissionType) that this permission record applies to.
Remarks
Permission types are extensible, but the default values represent Page View, Page Edit, Module View and Module Edit permissions.

Role Property

The Role that this permission applies to.

AllowAccess Property

Flag indicating whether to allow access, or not.
Remarks
A False value for the permission does not automatically prevent access, a user may be granted access by belonging to another role which has permission to access the resource.