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,6 +28,8 @@ namespace Disco.Web.Areas.Config.Views.DeviceProfile
|
||||
using System.Web.WebPages;
|
||||
using Disco.BI.Extensions;
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Services.Authorization;
|
||||
using Disco.Services.Web;
|
||||
using Disco.Web;
|
||||
|
||||
#line 2 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
@@ -39,7 +41,7 @@ namespace Disco.Web.Areas.Config.Views.DeviceProfile
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/DeviceProfile/_Table.cshtml")]
|
||||
public partial class Table : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.DeviceProfile.IndexModel>
|
||||
public partial class Table : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.DeviceProfile.IndexModel>
|
||||
{
|
||||
public Table()
|
||||
{
|
||||
@@ -48,6 +50,16 @@ namespace Disco.Web.Areas.Config.Views.DeviceProfile
|
||||
{
|
||||
|
||||
#line 3 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
|
||||
Authorization.Require(Claims.Config.DeviceProfile.Show);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 6 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
if (DiscoApplication.MultiSiteMode)
|
||||
{
|
||||
var deviceProfilesGrouped = Model.DeviceProfiles.OrderBy(i => i.AddressName).GroupBy(i => i.AddressName);
|
||||
@@ -61,7 +73,7 @@ namespace Disco.Web.Areas.Config.Views.DeviceProfile
|
||||
WriteLiteral(" <h2>");
|
||||
|
||||
|
||||
#line 9 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
#line 12 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
Write(deviceProfilesGroup.Key);
|
||||
|
||||
|
||||
@@ -70,21 +82,21 @@ WriteLiteral(" <h2>");
|
||||
WriteLiteral("</h2> ");
|
||||
|
||||
|
||||
#line 9 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
#line 12 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 10 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
#line 13 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
Write(Html.Partial(MVC.Config.DeviceProfile.Views._TableRender, deviceProfilesGroup.Cast<_IndexModelItem>(), new ViewDataDictionary()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 10 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
#line 13 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
|
||||
}
|
||||
}
|
||||
@@ -95,14 +107,14 @@ else
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 15 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
#line 18 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
Write(Html.Partial(MVC.Config.DeviceProfile.Views._TableRender, Model.DeviceProfiles.Cast<_IndexModelItem>(), new ViewDataDictionary()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 15 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
#line 18 "..\..\Areas\Config\Views\DeviceProfile\_Table.cshtml"
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user