Permissions & Authorization for Users #24

Initial Release; Includes Database and MVC refactoring
This commit is contained in:
Gary Sharp
2013-10-10 19:13:16 +11:00
parent 172ce5524a
commit a099d68915
458 changed files with 40221 additions and 12130 deletions
@@ -1,5 +1,9 @@
@model Disco.Web.Areas.Config.Models.Expressions.EditorModel
@{
// Under Construction - Not In Production
Authorization.Require(Claims.DiscoAdminAccount);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Expressions");
Html.BundleDeferred("~/ClientScripts/Modules/Disco-ExpressionEditor");
}
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -28,12 +28,14 @@ namespace Disco.Web.Areas.Config.Views.Expressions
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Services.Authorization;
using Disco.Services.Web;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/Expressions/Editor.cshtml")]
public partial class Editor : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.Expressions.EditorModel>
public partial class Editor : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.Expressions.EditorModel>
{
public Editor()
{
@@ -43,6 +45,10 @@ namespace Disco.Web.Areas.Config.Views.Expressions
#line 2 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
// Under Construction - Not In Production
Authorization.Require(Claims.DiscoAdminAccount);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Expressions");
Html.BundleDeferred("~/ClientScripts/Modules/Disco-ExpressionEditor");
@@ -78,7 +84,7 @@ WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(">\r\n $(function () {\r\n var initExpression = \'");
#line 21 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
#line 25 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
Write(Model.Expression);
@@ -87,7 +93,7 @@ WriteLiteral(">\r\n $(function () {\r\n var initExpression = \
WriteLiteral("\';\r\n var hostSrcUrl = \'");
#line 22 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
#line 26 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
Write(Links.ClientSource.Style.ExpressionEditor_htm);
@@ -103,7 +109,7 @@ WriteLiteral(@"';
var editor = new DiscoExpressionEditor(host, '");
#line 29 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
#line 33 "..\..\Areas\Config\Views\Expressions\Editor.cshtml"
Write(Url.Action(MVC.API.Expressions.ValidateExpression()));