Class AdvancedPermissionAttribute
Inherited Members
Namespace: Dnn.PersonaBar.Library.Attributes
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class AdvancedPermissionAttribute : AuthorizeAttributeBase
Properties
| Improve this Doc View SourceCheckPermissionForAdmin
Gets or sets a value indicating whether when true, it will force admin to have explicit Permission. When false, admin is passed without checking the Permission.
Declaration
public bool CheckPermissionForAdmin { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MenuName
Gets or sets the menu identifier.
Declaration
public string MenuName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Permission
Gets or sets the permission key.
Declaration
public string Permission { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceIsAuthorized(AuthFilterContext)
Tests if the request passes the authorization requirements.
Declaration
public override bool IsAuthorized(AuthFilterContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| AuthFilterContext | context | The auth filter context. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True when authorization is succesful. |