Django auth backend and DRF Permissions class for django-organizations.
Add next line to requirements.txt file:
git+https://github.com/Dmitri-Sintsov/django-organizations-permissions.git
Then run:
python3 -m pip install -r requirements.txt python3 manage.py makemigrations org_permissions python3 manage.py migrate
Use provided sample ORGANIZATION_PERMISSIONS or create your own permissions.py then run:
python3 manage.py create_organizations_permissions --app-names=org_permissions
See sample project for the simple example.