aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-12 23:12:35 +0700
committerGravatar Vitaly Takmazov2016-12-12 22:49:47 +0300
commitc2afc713d3748b1c4fb3453f2550d966a5743285 (patch)
treef24cac035d775dc6d788b6119b6e5064046176d0 /juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html
parentc0831038bd7bde32df5af8fb851d210daeccc853 (diff)
spring security EL simplified
Diffstat (limited to 'juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html')
-rw-r--r--juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html b/juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html
index 2317369c..3b2d3bff 100644
--- a/juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html
+++ b/juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html
@@ -14,7 +14,7 @@
</form>
</div>
<section id="headdiv">
- <th:block th:if="${#authorization.expression('hasRole(''ROLE_USER'')')}">
+ <th:block th:if="${#authorization.expression('isAuthenticated()')}">
<nav id="user">
<ul>
<li>
@@ -48,7 +48,7 @@
</ul>
</nav>
</th:block>
- <th:block th:if="${#authorization.expression('hasRole(''ROLE_ANONYM'')')}">
+ <th:block th:if="${#authorization.expression('isAnonymous()')}">
<p>[(#{message.loginForSending(@{/login})})]</p>
</th:block>
</section>