Hi All,

I have a question specific to decorator & authkit.

@authorize(HasAuthKitRole('poster'))
def edit(self, id):
        ...

I want to check that the edit permission is given only to owner of
that content.

I will allow the user only if I know the content id ('id' attribute).
How to get the content ID from the request in the decorator.

Regards,

Krish



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to