I've done this in my application.

Basically I made an abstract subclass of a BasePage. All my pages subclass this 
new class. All it has is a field requiredPermission which is set in the 
constructor, and an initialize() method which checks permissions in the Visit 
object with that requiredPermission field. If they don't have the permission, 
it redirects them to a "no permissions" page. It was really easy.

Greg

-----Original Message-----
From: CIJOML [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 10:04 AM
To: [email protected]
Subject: User rights with tapestry?


Hello,

is there any howto available (for both version 3 and 4) which covers user 
rights?

I need users to see some properties (icons,links) only when I verify in DB, 
that user should have such rights.

Thanks a lot for reply

Michal

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to