th:if="${#authorization.expression('hasRole(''ADMIN'')
<a th:if="${#authorization.expression('hasRole(''ADMIN'')')}">
<a href="/dashboard}" th:text="#{YOUR CONTENT}"></a>
</a>
<a th:if="${#authorization.expression('hasRole(''USER'')')}">
<a href="/dashboard}" th:input="${YOUR CONTENT}"></a>
</a>