Ensures controllers are authenticated. fixes type with login directive.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user