-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I'm doing something like this with zk 3.6.4 + spring security:
<menubar> <menuitem if="${sec:isAllGranted('2013')}"/> <menuitem if="${sec:isAllGranted('2014')}"/> <menuitem if="${sec:isAllGranted('2015')}"/> </menubar>
What I want to do with this is to make some menu items available for user depending on user's profile.
By the time this code is executed I have all the permissions stored at the security context.
Everything goes well until I come across components created via Executions.createComponent;
security seems to be bypassed and doesn't work; components are not being rendered even though user has the required rights.
All other components which are not created using the mentioned method make the validations just fine and run as expected.
Am I missing something?
Is there any alternative way for creating components other than Executions.createComponent?
Any help on this would be appreciated, Thanks.
Asked: 2010-07-07 21:35:39 +0800
Seen: 273 times
Last updated: Jul 07 '10