Ensures controllers are authenticated. fixes type with login directive.

This commit is contained in:
Shannon Deminick
2013-06-02 14:35:15 -10:00
parent f3fbae7173
commit 2cf1ee283f
5 changed files with 5 additions and 21 deletions

View File

@@ -13,10 +13,8 @@ using umbraco.cms.presentation.Trees;
namespace Umbraco.Web.Trees
{
//NOTE: We will of course have to authorized this but changing the base class once integrated
[PluginController("UmbracoTrees")]
public class ApplicationTreeApiController : UmbracoApiController //UmbracoAuthorizedApiController
public class ApplicationTreeApiController : UmbracoAuthorizedApiController
{
/// <summary>

View File

@@ -10,13 +10,12 @@ using umbraco.businesslogic;
namespace Umbraco.Web.Trees
{
//NOTE: We will of course have to authorized this but changing the base class once integrated
/// <summary>
/// This is used to output JSON from legacy trees
/// </summary>
[PluginController("UmbracoTrees")]
public class LegacyTreeApiController : UmbracoApiController //UmbracoAuthorizedApiController
public class LegacyTreeApiController : UmbracoAuthorizedApiController
{
/// <summary>
/// Convert a legacy tree to a new tree result

View File

@@ -12,7 +12,7 @@ namespace Umbraco.Web.Trees
/// <summary>
/// The base controller for all tree requests
/// </summary>
public abstract class TreeApiController : UmbracoApiController //UmbracoAuthorizedApiController
public abstract class TreeApiController : UmbracoAuthorizedApiController
{
/// <summary>
/// Remove the xml formatter... only support JSON!