﻿@model biz.dfch.CS.Appclusive.UI.Models.Core.Acl
@using biz.dfch.CS.Appclusive.UI.App_LocalResources

@if (Model != null && !string.IsNullOrEmpty(Model.Name))
{
    if (biz.dfch.CS.Appclusive.UI.Navigation.PermissionDecisions.Current.HasPermission(Model.GetType(), "CanRead"))
    {
        string id = (string)ViewContext.Controller.ControllerContext.RouteData.Values["id"];
        string action = (string)ViewContext.Controller.ControllerContext.RouteData.Values["action"];
        string controller = (string)ViewContext.Controller.ControllerContext.RouteData.Values["controller"];
        @Html.ActionLink(Model.Name, "ItemDetails", "Acls", new { id = Model.Id, rId = id, rAction = action, rController = controller }, null)
    }
    else
    {
        @Html.DisplayFor(model => model.Name)
    }
}
﻿@model biz.dfch.CS.Appclusive.UI.Models.Core.Acl
@using biz.dfch.CS.Appclusive.UI.App_LocalResources

@if (Model != null && !string.IsNullOrEmpty(Model.Name))
{
    if (biz.dfch.CS.Appclusive.UI.Navigation.PermissionDecisions.Current.HasPermission(Model.GetType(), "CanRead"))
    {
        string id = (string)ViewContext.Controller.ControllerContext.RouteData.Values["id"];
        string action = (string)ViewContext.Controller.ControllerContext.RouteData.Values["action"];
        string controller = (string)ViewContext.Controller.ControllerContext.RouteData.Values["controller"];
        @Html.ActionLink(Model.Name, "Details", "Acls", new { id = Model.Id, rId = id, rAction = action, rController = controller }, null)
    }
    else
    {
        @Html.DisplayFor(model => model.Name)
    }
}
Fix Navigation link on acl
Fix Navigation link on acl
