Load Spring Security Attribute into a JSP variable
===

I would like to load a Spring Security attribute into a variable.

Variables:
- Boolean : edit: provided in the in the POST body (loading works fine)
- Boolean : isSupervisor: should be true if the user has the role supervisor (i don't know how to load it into an accessible variable. I've tried many different approaches and it didn't work.)

    //..set somehow the isSupervisor variable
    //.. var isSupervisor = hasRole('ROLE_SUPERVISOR')
    
    <c:if test="${edit} and not isSupervisor">
    ... do something
    </c:if>