Auth library in Thymeleaf

Enonic version: 6.6.0
OS: Ubuntu

We are creating a application we’re we are using groups and roles. Is there a way to use the AUTH Lib in Thymeleaf as we use the PORTAL Lib ?

AFAIK, the only Enonic-specific functions available in the Thymeleaf context are the supported view functions listed here:

Not all functions in the portal lib are available in Thymeleaf, even.

@rbrastad Maybe you can do the necessary checks in your controller and pass it to the view. Then you will have less logic in your views.

@mer We already do our checks in the controller and pass along the role. But would be easier if it was a built in function.

1 Like