Permissions & Authorization for Users #24
Initial Release; Includes Database and MVC refactoring
This commit is contained in:
@@ -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.Views.Job
|
||||
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("~/Views/Job/WarrantyProviderJobDetails.cshtml")]
|
||||
public partial class WarrantyProviderJobDetails : System.Web.Mvc.WebViewPage<Disco.Web.Models.Job.WarrantyProviderJobDetailsModel>
|
||||
public partial class WarrantyProviderJobDetails : Disco.Services.Web.WebViewPage<Disco.Web.Models.Job.WarrantyProviderJobDetailsModel>
|
||||
{
|
||||
public WarrantyProviderJobDetails()
|
||||
{
|
||||
@@ -44,6 +46,8 @@ namespace Disco.Web.Views.Job
|
||||
#line 2 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
Layout = null;
|
||||
|
||||
Authorization.Require(Claims.Job.Properties.WarrantyProperties.ProviderDetails);
|
||||
|
||||
if (Model.JobDetailsException != null)
|
||||
{
|
||||
|
||||
@@ -55,7 +59,7 @@ WriteLiteral(" <h3>\r\n Error:</h3>\r\n");
|
||||
WriteLiteral(" <div>\r\n <strong>");
|
||||
|
||||
|
||||
#line 9 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 11 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
Write(Model.JobDetailsException.Message);
|
||||
|
||||
|
||||
@@ -82,7 +86,7 @@ WriteLiteral(" style=\"display: none\"");
|
||||
WriteLiteral(">\r\n <br />\r\n <strong>Error Type: </strong>");
|
||||
|
||||
|
||||
#line 14 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 16 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
Write(Model.JobDetailsException.GetType().Name);
|
||||
|
||||
|
||||
@@ -97,7 +101,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 18 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 20 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
Write(Model.JobDetailsException.StackTrace.ToMultilineString());
|
||||
|
||||
|
||||
@@ -106,13 +110,13 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 20 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 22 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 20 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 22 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
if (Model.JobDetailsException.InnerException != null)
|
||||
{
|
||||
|
||||
@@ -124,7 +128,7 @@ WriteLiteral(" <hr />\r\n");
|
||||
WriteLiteral(" <div>\r\n <strong>Inner Exception:</strong> ");
|
||||
|
||||
|
||||
#line 24 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 26 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
Write(Model.JobDetailsException.InnerException.Message);
|
||||
|
||||
|
||||
@@ -133,7 +137,7 @@ WriteLiteral(" <div>\r\n <strong>Inner Exception:</str
|
||||
WriteLiteral("<br />\r\n <strong>Error Type:</strong> ");
|
||||
|
||||
|
||||
#line 25 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 27 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
Write(Model.JobDetailsException.GetType().Name);
|
||||
|
||||
|
||||
@@ -148,7 +152,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 28 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 30 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
Write(Model.JobDetailsException.InnerException.StackTrace);
|
||||
|
||||
|
||||
@@ -157,7 +161,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </div>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 31 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 33 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -179,7 +183,7 @@ WriteLiteral(@">
|
||||
");
|
||||
|
||||
|
||||
#line 41 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 43 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -190,14 +194,14 @@ WriteLiteral(@">
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 46 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 48 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
Write(Html.PartialCompiled(Model.ViewType, Model.ViewModel));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 46 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 48 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
|
||||
}
|
||||
else
|
||||
@@ -213,7 +217,7 @@ WriteLiteral(" class=\"smallMessage\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 50 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 52 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
Write(Model.JobDetailsNotSupportedMessage);
|
||||
|
||||
|
||||
@@ -222,7 +226,7 @@ WriteLiteral(">");
|
||||
WriteLiteral("</span>\r\n");
|
||||
|
||||
|
||||
#line 51 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
#line 53 "..\..\Views\Job\WarrantyProviderJobDetails.cshtml"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user