publicly exposes the UmbracoAuthorizeAttribute for MVC and creates one for web api too.

This commit is contained in:
Shannon Deminick
2013-02-27 00:33:59 +06:00
parent ffb9849745
commit b0ae03b220
2 changed files with 46 additions and 4 deletions

View File

@@ -7,11 +7,10 @@ using umbraco.BasePages;
namespace Umbraco.Web.Mvc
{
/// <summary>
/// Ensures authorization occurs for the installer if it has already completed. If install has not yet occured
/// then the authorization is successful
/// <summary>
/// Ensures authorization is successful for a back office user
/// </summary>
internal class UmbracoAuthorizeAttribute : AuthorizeAttribute
public sealed class UmbracoAuthorizeAttribute : AuthorizeAttribute
{
private readonly ApplicationContext _applicationContext;