wichert / rest_toolkit

Simple REST servers

Home Page:http://rest-toolkit.rtfd.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding ACL through a factory-object

peletiah opened this issue · comments

This project looks very promising, I really like the effort you put into a proper and thorough documentation!

I'm looking into using this together with ziggurat foundations and I have a basic question about permissions:

Can I add an ACL defined in a factory-object to an REST resource, analogous to the factory-argument in pyramid.config.Configurator.add_route?

You don't need to: the resource itself is the context. What you will need to do is put the __acl__ on the resource itself, as you can see in the security chapter of the documentation.