Ensures controllers are authenticated. fixes type with login directive.
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<umg-login></umg-login>
|
||||
<umb-login></umb-login>
|
||||
<umb-notifications></umb-notifications>
|
||||
|
||||
<script src="lib/require/require.min.js" type="text/javascript"></script>
|
||||
|
||||
@@ -7,20 +7,7 @@
|
||||
|
||||
define(['angular'], function (angular) {
|
||||
|
||||
/**
|
||||
* @ngdoc controller
|
||||
* @name umbraco.ContainerController
|
||||
* @function
|
||||
*
|
||||
* @description
|
||||
* The container controller which is used to load in the html templates so html devs need not worry about the razor markup
|
||||
*/
|
||||
var containerController = function ($scope) {
|
||||
$scope.applicationView = "views/index.html";
|
||||
};
|
||||
angular.module('umbraco').controller("ContainerController", containerController);
|
||||
|
||||
|
||||
|
||||
//Handles the section area of the app
|
||||
angular.module('umbraco').controller("NavigationController",
|
||||
function ($scope, $window, $log, tree, section, $rootScope, $routeParams, dialog, $q) {
|
||||
|
||||
@@ -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