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

@@ -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>

View File

@@ -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) {

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!