Versions

Description

An alternate approach to building permission classes

In Django rest Framework the permission classes work as:

If any permission check fails an [...] exception will be raised, and the main body of the view will not run.

This implementation of permission classes takes a list of functions that determine if the access is allowed. If any of the functions returns True, the access is allowed, if none of the permission checks passes the access will be denied. This enables to write small, reusable and chainable permissions

Repository

https://github.com/PrimarySite/drf-deny-allow-pc.git

Project Slug

drfdapc

Last Built

1 year ago passed

Maintainers

Home Page

https://github.com/PrimarySite/drf-deny-allow-pc

Badge

Tags

django, permissions, rest

Project Privacy Level

Public

Short URLs

drfdapc.readthedocs.io
drfdapc.rtfd.io

Default Version

latest

'latest' Version

master