Hello,

is it possible for a single method, under Zope 2.1.6, to have several
permissions? ie

__ac_permission__ = (
    ('edit my data', 'edit_data'),
    ('edit others\'s data', 'edit_data'),
)

I have the scenario where a user can edit *its* data but not other
users's data, unless he has a special role. however, the method used to
edit one's data is the same.
So I make sure inside the edit_data method that the user has the
adequate permissions if he tries to edit another one's data.

this does not work. indeed, lib/python/AccessControl/Permission.py
reads:

    # Attribute names which appear in a
    # permission may not appear in any other permission defined
    # by the
object.                                                            

thanks in advance for any advices.

regards,
[EMAIL PROTECTED]

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to