forked from ming-soft/MCMS
-
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.
- Loading branch information
wangtp
committed
Aug 14, 2019
1 parent
7fca56b
commit 8a3371c
Showing
2 changed files
with
7 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<@shiro.hasPermission name="cms:column:save"><@ms.addButton id="addColumnBtn"/></@shiro.hasPermission> | ||
<@shiro.hasPermission name="cms:column:save"><@ms.addButton id="addColumnBtn"/></@shiro.hasPermission> | ||
<@shiro.hasPermission name="cms:column:del"><@ms.delButton id="delColumnBtn"/></@shiro.hasPermission> |
12 changes: 6 additions & 6 deletions
12
src/main/webapp/WEB-INF/manager/cms/column/shiro-update.ftl
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<@shiro.hasPermission name="cms:column:update"> | ||
var url = "${managerPath}/${model?default("")}/column/"+row.categoryId+"/edit.do?modelId=${Session.model_id_session?default(0)}&modelTitle=${Session.model_title_session?default('')}"; | ||
return "<a href=" +url+ " target='_self'>" + value + "</a>"; | ||
</@shiro.hasPermission> | ||
<@shiro.lacksPermission name="cms:column:update"> | ||
return value; | ||
<@shiro.hasPermission name="cms:column:update"> | ||
var url = "${managerPath}/${model?default("")}/column/"+row.categoryId+"/edit.do?modelId=${Session.model_id_session?default(0)}&modelTitle=${Session.model_title_session?default('')}"; | ||
return "<a href=" +url+ " target='_self'>" + value + "</a>"; | ||
</@shiro.hasPermission> | ||
<@shiro.lacksPermission name="cms:column:update"> | ||
return value; | ||
</@shiro.lacksPermission> |