You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by bd...@apache.org on 2017/06/22 20:11:17 UTC
[05/12] shiro-site git commit: Update web.md.vtl
Update web.md.vtl
fix jsp tag error for hasAnyRoles and lacksPermission
Fixes: #20
Project: http://git-wip-us.apache.org/repos/asf/shiro-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/shiro-site/commit/45947e1f
Tree: http://git-wip-us.apache.org/repos/asf/shiro-site/tree/45947e1f
Diff: http://git-wip-us.apache.org/repos/asf/shiro-site/diff/45947e1f
Branch: refs/heads/master
Commit: 45947e1f052023c48618b41db605e7ea72e79213
Parents: 92df920
Author: nuccch <nu...@163.com>
Authored: Mon May 22 15:26:51 2017 +0800
Committer: Brian Demers <bd...@apache.org>
Committed: Thu Jun 22 16:10:44 2017 -0400
----------------------------------------------------------------------
web.md.vtl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/shiro-site/blob/45947e1f/web.md.vtl
----------------------------------------------------------------------
diff --git a/web.md.vtl b/web.md.vtl
index db56c64..d9f5f6b 100644
--- a/web.md.vtl
+++ b/web.md.vtl
@@ -840,7 +840,7 @@ For example:
``` html
<shiro:hasAnyRoles name="developer, project manager, administrator">
You are either a developer, project manager, or administrator.
-</shiro:lacksRole>
+</shiro:hasAnyRoles>
```
The `hasAnyRole` tag does not currently have a logically opposite tag.
@@ -872,7 +872,7 @@ For example:
``` html
<shiro:lacksPermission name="user:delete">
Sorry, you are not allowed to delete user accounts.
-</shiro:hasPermission>
+</shiro:lacksPermission>
```
The `lacksPermission` tag is the logical opposite of the [hasPermission](#Web-haspermissiontag) tag.