浏览代码

Gave correct role name

Abdull 13 年之前
父节点
当前提交
dec44811fc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      samples/tutorial/src/main/webapp/secure/extreme/index.jsp

+ 2 - 2
samples/tutorial/src/main/webapp/secure/extreme/index.jsp

@@ -14,8 +14,8 @@
 <h1>VERY Secure Page</h1>
 This is a protected page. You can only see me if you are a supervisor.
 
-<authz:authorize access="hasRole('ROLE_SUPERVISOR')">
-   You have "ROLE_SUPERVISOR" (this text is surrounded by &lt;authz:authorize&gt; tags).
+<authz:authorize access="hasRole('supervisor')">
+   You have authority "supervisor" (this text is surrounded by &lt;authz:authorize&gt; tags).
 </authz:authorize>
 
 <p><a href="../../">Home</a></p>