0

Spring Security Issue

asked 2010-07-07 21:35:39 +0800

axl gravatar image axl
6

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.

delete flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-07-07 21:35:39 +0800

Seen: 273 times

Last updated: Jul 07 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More