Or, you can use Tapestry-Acegi, which allows you to annotate your
page/listener methods to define required permissions.  Right now, anonymous
access to the SVN repo is not working, though.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, September 18, 2006 10:30 AM
To: users@tapestry.apache.org
Subject: RE: User rights with tapestry?

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: users@tapestry.apache.org
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]




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

Reply via email to