namespace: Serenity.Web assembly: Serenity.Net.Web
Authorizes access to a controller action. Optionally checks the permission provided as the first argument. Use special permission key "?" to check for logged-in users, and "*" to allow anyone including anonymous access.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class PageAuthorizeAttribute : TypeFilterAttribute
name | description |
---|---|
PageAuthorizeAttribute() | Creates an instance of the PageAuthorizeAttribute. |
PageAuthorizeAttribute(…) | Creates an instance of the PageAuthorizeAttribute, while reading the permission key from the NavigationPermissionAttribute or ReadPermissionAttribute of the source type. (4 constructors) |
Permission { get; } | The permission key |
name | description |
---|---|
PageAuthorizeAttribute(…) | Creates a new instance of the class |
- Source: PageAuthorizeAttribute.cs