• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class AdvancedPermissionAttribute

Inheritance
System.Object
AuthorizeAttributeBase
AdvancedPermissionAttribute
Inherited Members
AuthorizeAttributeBase.IsAnonymousAttributePresent(HttpActionContext)
AuthorizeAttributeBase.OnAuthorization(HttpActionContext)
AuthorizeAttributeBase.SkipAuthorization(HttpActionContext)
Namespace: Dnn.PersonaBar.Library.Attributes
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class AdvancedPermissionAttribute : AuthorizeAttributeBase

Properties

| Improve this Doc View Source

CheckPermissionForAdmin

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
| Improve this Doc View Source

MenuName

Gets or sets the menu identifier.

Declaration
public string MenuName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Permission

Gets or sets the permission key.

Declaration
public string Permission { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

IsAuthorized(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.

Overrides
AuthorizeAttributeBase.IsAuthorized(AuthFilterContext)

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS