Class VerifyGadgetOwnerAttribute
A filter that verifies that the current gadget belongs to the currently logged on user
Inheritance
System.Object
VerifyGadgetOwnerAttribute
Namespace: EPiServer.Shell.Gadgets
Assembly: EPiServer.Shell.dll
Version: 9.12.2Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public sealed class VerifyGadgetOwnerAttribute : ActionFilterAttribute
Constructors
VerifyGadgetOwnerAttribute()
Declaration
public VerifyGadgetOwnerAttribute()
Methods
OnActionExecuting(ActionExecutingContext)
Called before an action is executed. Will throw an exception if the specified gadget doesn't belong to the currently logged on user.
Declaration
public override void OnActionExecuting(ActionExecutingContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ActionExecutingContext | filterContext | A context for the action. |