Restricts callers to an action method.
More...
|
override bool | AuthorizeCore (HttpContextBase httpContext) |
| Determines whether access to the core framework is authorized. More...
|
|
override void | HandleUnauthorizedRequest (System.Web.Mvc.AuthorizationContext filterContext) |
| Processes HTTP requests that fail authorization and handles AJAX requests appropriately. More...
|
|
Restricts callers to an action method.
Definition at line 20 of file Csla.Web.Mvc.Shared/HasPermissionAttribute.cs.
◆ HasPermissionAttribute() [1/2]
Csla.Web.Mvc.HasPermissionAttribute.HasPermissionAttribute |
( |
AuthorizationActions |
action, |
|
|
Type |
objectType |
|
) |
| |
Creates an instance of the type.
- Parameters
-
action | AuthorizationActions for which the authorization is required. |
objectType | CSLA object type for which the action is applied. |
Definition at line 33 of file Csla.Web.Mvc.Shared/HasPermissionAttribute.cs.
◆ HasPermissionAttribute() [2/2]
Csla.Web.Mvc.HasPermissionAttribute.HasPermissionAttribute |
( |
AuthorizationActions |
action, |
|
|
Type |
objectType, |
|
|
string |
message |
|
) |
| |
Creates an instance of the type.
- Parameters
-
action | AuthorizationActions for which the authorization is required. |
objectType | CSLA object type for which the action is applied. |
message | Error message for resutl. |
Definition at line 46 of file Csla.Web.Mvc.Shared/HasPermissionAttribute.cs.
◆ AuthorizeCore()
override bool Csla.Web.Mvc.HasPermissionAttribute.AuthorizeCore |
( |
HttpContextBase |
httpContext | ) |
|
|
protected |
◆ HandleUnauthorizedRequest()
override void Csla.Web.Mvc.HasPermissionAttribute.HandleUnauthorizedRequest |
( |
System.Web.Mvc.AuthorizationContext |
filterContext | ) |
|
|
protected |
Processes HTTP requests that fail authorization and handles AJAX requests appropriately.
- Parameters
-
filterContext | The filterContext object contains the controller, HTTP context, request context, action result, and route data. |
Definition at line 70 of file Csla.Web.Mvc.Shared/HasPermissionAttribute.cs.