Pages and permissions

Jiri De Jagere <[email protected]> Thu, 11 Jul 2013 13:13:54 +0200
Newsgroups gmane.comp.jakarta.jetspeed.user
Message-ID <[email protected]>
Hi,


I'm trying to set up a series of pages with specific permissions. I'm struggling to understand why some pages are displayed (or why not). My goal is to achieve the following pages available in the logged-in vs logged-out situations:

- Not logged in:
	- landing.psml
	- registration.psml
	- about.psml

- Logged in:
	- news.psml
	- my-account.psml
	- about.psml

I've set the root folder permissions for (users=*, permissions=view). I've set the security constraints for the individual pages as follows:

- about.psml (users=* / permissions=view)
- landing.psml (roles=guest / permissions=view)
- my-account.psml (roles=user,manager,admin / permissions=view with an extra security-constraint on users=guest)
- news.psml (roles=user,manager,admin / permissions=view)
- landing.psml (roles=guest / permissions=view)

When the user is not logged in I get the correct pages:

- landing.psml
- registration.psml
- about.psml

When I log in with any user (role could be any of the three) I get the following pages:

- landing.psml (would not want to see this)
- registration.psml (would not want to see this)
- news.psml
- about.psml

As you notice, I'm missing my-account.psml because of the extra security-constraint and I get all the pages meant to be seen only when not logged in.

Any suggestions on why this is going wrong would be greatly appreciated.


Thanks!


Jiri