Skip to content

Commit 6bde4ca

Browse files
committed
Merge pull request #4 from Abdull/master
Correct role names in tutorial jsps
2 parents 3760d79 + dec4481 commit 6bde4ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/tutorial/src/main/webapp/secure/extreme/index.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<h1>VERY Secure Page</h1>
1515
This is a protected page. You can only see me if you are a supervisor.
1616

17-
<authz:authorize access="hasRole('ROLE_SUPERVISOR')">
18-
You have "ROLE_SUPERVISOR" (this text is surrounded by &lt;authz:authorize&gt; tags).
17+
<authz:authorize access="hasRole('supervisor')">
18+
You have authority "supervisor" (this text is surrounded by &lt;authz:authorize&gt; tags).
1919
</authz:authorize>
2020

2121
<p><a href="../../">Home</a></p>

samples/tutorial/src/main/webapp/secure/index.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is a protected page. You can get to me if you've been remembered,
1818
or if you've authenticated this session.
1919
</p>
2020
<p>
21-
<sec:authorize access="hasRole('ROLE_SUPERVISOR')">
21+
<sec:authorize access="hasRole('supervisor')">
2222
You are a supervisor! You can therefore see the <a href="extreme/index.jsp">extremely secure page</a>.<br/><br/>
2323
</sec:authorize>
2424
</p>

0 commit comments

Comments
 (0)