Check django permission or operator?
<p>For my view, I am checking the permission through the @permission_required decorator but I really wish to check for "either" permission A or permission B. so if user has at least one of two permissions, the view is execute...</p>

<p>Is there a way to do this?</p>

<p>You could write your own decorator for this.
Or use <code>django.contrib.auth.decorators.user_passes_test(your_test_func)</code> to create a custom decorator.</p>

<p>In both cases, have a look at the source code of the <code>permission_required</code> decorator in the above module.</p>

python django model-view-controller permissions