C# Class Phun.CmsAdminAuthorizeAttribute

Allow for authorizing of content edit.
Inheritance: System.Web.Mvc.AuthorizeAttribute
Mostrar archivo Open project: noogen/phuncms

Public Methods

Method Description
OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void

Called when a process requests authorization.

Protected Methods

Method Description
PopulateRolesFromConfiguration ( ICmsConfiguration config, System.Web.Mvc.AuthorizationContext filterContext ) : void

Populates the roles from configuration.

Method Details

OnAuthorization() public method

Called when a process requests authorization.
public OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext The filter context, which encapsulates information for using .
return void

PopulateRolesFromConfiguration() protected method

Populates the roles from configuration.
protected PopulateRolesFromConfiguration ( ICmsConfiguration config, System.Web.Mvc.AuthorizationContext filterContext ) : void
config ICmsConfiguration The config.
filterContext System.Web.Mvc.AuthorizationContext The filter context.
return void