on 2022 Jul 19 9:10 AM
Hi, I'm having some issues using SmartEdit. Unfortunately, SmartEdit won't show content which is wrapped in an authorize tag from Spring (Taglib: http://www.springframework.org/security/tags). No matter if the condition in the tag is true or false SmartEdit won't show the wrapped content. When I access the page without using SmartEdit the content shows up as it should.
Does someone know how to fix this issue?
<sec:authorize access="!hasAnyRole('ROLE_CUSTOMERGROUP')">
<div class="span-6">
<user:login />
</div>
</sec:authorize>
<sec:authorize access="hasAnyRole('ROLE_CUSTOMERGROUP')">
<div class="span-6">
<user:summary />
</div>
</sec:authorize><br>
Normal context:

SmartEdit context:

P. S.: We use several storefronts and it works in other storefronts although it's the same content and the same roles.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
The reason for the issue was a wrong configured Spring security config. After adjusting the UrlRequestMatcher it would show the content.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.