forked from Halifa/TonyBlogs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. 添加权限校验
- Loading branch information
Showing
4 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
TonyBlogs.WebApp/Areas/Admin/Views/Function/_FunctionItemPartial.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@using TonyBlogs.DTO.UserFunction | ||
|
||
@model UserFunctionTreeItemDTO | ||
|
||
@{ | ||
Layout = null; | ||
} | ||
|
||
<li> | ||
<a fid="@Model.ID" pfid="@Model.ParentID" href="#">@Model.FucTitle</a> | ||
@if (Model.ChildList.Count > 0) | ||
{ | ||
<ul role="group" class="jstree-children"> | ||
@foreach (var secItem in Model.ChildList) | ||
{ | ||
@Html.Partial("_FunctionItemPartial", secItem) | ||
} | ||
</ul> | ||
} | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.Mvc; | ||
|
||
namespace TonyBlogs.WebApp.Filters | ||
{ | ||
public class AuthFilter : FilterAttribute, IActionFilter | ||
{ | ||
public void OnActionExecuted(ActionExecutedContext filterContext) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void OnActionExecuting(ActionExecutingContext filterContext) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters