nnseva / django-access

Django-Access - the application introducing dynamic evaluation-based instance-level (row-level) access rights control for Django
GNU Lesser General Public License v3.0
78 stars 6 forks source link

Filter truth values from plugin callbacks #9

Open nnseva opened 6 years ago

nnseva commented 6 years ago

Happens frequently that the plugin method returns truth value instead of a dictionary from check_ calls. The SimpleCheckPlugin now filters such a return.

It is useful to filter such truth values everywhere allowing users to return simple value from the plugin to exclude frequent misusing of the package.