Skip to content

Commit 1f8b835

Browse files
committed
added permission checks to home.jsp
1 parent 70dbc86 commit 1f8b835

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/webapp/home.jsp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@
7373
<shiro:lacksRole name="Enlisted">Enlisted<br/></shiro:lacksRole>
7474
</p>
7575

76+
<h2>Permissions</h2>
77+
78+
<ul>
79+
<li>You may <shiro:lacksPermission name="ship:NCC-1701-D:command"><b>NOT</b> </shiro:lacksPermission> command the <code>NCC-1701-D</code> Starship!</li>
80+
<li>You may <shiro:lacksPermission name="user:${account.username}:edit"><b>NOT</b> </shiro:lacksPermission> edit the ${account.username} user!</li>
81+
</ul>
82+
7683
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
7784
<script src="https://code.jquery.com/jquery.js"></script>
7885
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>

0 commit comments

Comments
 (0)