Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple permissions in view_config decorator?

I am configuring access control for a web application based on the Pyramid framework. I am setting up permissions for my view callables using the @view_config decorator. I have two permissions, namely 'read' and 'write'. Now, I want certain views to require both permissions. I was unable to figure out how to do this with view_config - am I missing something, or is there maybe another way to do this?

like image 870
Jesko Hüttenhain Avatar asked Feb 24 '13 18:02

Jesko Hüttenhain


1 Answers

Make a readwrite permission. Each view gets one and only one permission but each principal can be mapped to many permissions.

like image 114
Michael Merickel Avatar answered Oct 11 '22 05:10

Michael Merickel