I'm following security guidelines found on Pyramid docs along with wiki tutorial Adding Authorization
Now I need to add restrictions based un single user rather than groups.
Let's say for example that, if any blog editor can have permission to review all comments, only post author can edit the post itself.
For the first task I will have in my Root ACL like this:
__acl__ = [ (Allow, Everyone, 'view'),
(Allow, Authenticated, 'view_profile'),
(Allow, 'groups:editor', 'edit_comment')
]
but whay about for edit_post
?
I've read this answer but seems overkill to me for my needs since I don't need to build a resource tree.