Подтвердить что ты не робот

Как не упоминать hasRole ('ROLE_ADMIN') в spring security taglib

Как написать следующее условие с помощью тега spring?

<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<sec:authorize access="not of hasRole('ROLE_ADMIN')">
   <div> show these for only non admins </div>
</sec:authorize>
4b9b3361

Ответ 1

<sec:authorize access="!hasRole('ROLE_ADMIN')">
   <div> show these for only non admins </div>
</sec:authorize>