This content has been marked as final.
Show 2 replies
-
1. Re: How do I deny access on my forms based on the concerned entity and userrole
nickarls Mar 4, 2008 8:12 AM (in response to pete007)Tried the <restrict/> tag from section "13.6.4. Securing pages"?
I'm not sure I understood the entity restriction question, you could just add a where to the query and add restrictions from identity
PS. Sleep. Productivity isn't related to uptime ;-)
-
2. Re: How do I deny access on my forms based on the concerned entity and userrole
pete007 Mar 4, 2008 8:49 AM (in response to pete007)Wow, that was easy! I reverted all changes described above and only put one line into my pages.xml:
<page view-id="/Department*"><restrict>#{s:hasRole('superadmin')}</restrict></page>
And now all department pages can only be accessed by a superadmin.
It is such a small chapter, I have overread it somehow. You need to paint it red and put many exclamation marks around .. and blink. :)
Thanks a lot, now I can go to increase my productivity with a clear conscience. ;)