aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.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/views/index.html
parentc0831038bd7bde32df5af8fb851d210daeccc853 (diff)
spring security EL simplified
Diffstat (limited to 'juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html')
-rw-r--r--juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html
index 6b6f278d..2c5aab3b 100644
--- a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html
+++ b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html
@@ -3,8 +3,8 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/mainLayout}">
<head>
- <title th:if="${#authorization.expression('hasRole(''ROLE_USER'')')}" th:text="#{title.index.user}">Популярные</title>
- <title th:if="${#authorization.expression('hasRole(''ROLE_ANONYM'')')}" th:text="#{title.index.anonym}">Микроблоги Juick: популярные записи</title>
+ <title th:if="${#authorization.expression('isAuthenticated()')}" th:text="#{title.index.user}">Популярные</title>
+ <title th:if="${#authorization.expression('isAnonymous()')}" th:text="#{title.index.anonym}">Микроблоги Juick: популярные записи</title>
</head>
<body>