nnseva / django-access Goto Github PK
View Code? Open in Web Editor NEWDjango-Access - the application introducing dynamic evaluation-based instance-level (row-level) access rights control for Django
License: GNU Lesser General Public License v3.0
Django-Access - the application introducing dynamic evaluation-based instance-level (row-level) access rights control for Django
License: GNU Lesser General Public License v3.0
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.
It is useful to create a Django REST Framework plugin to use django-access in the framework environment.
The standard Django-select2 widget doesn't take access rules into account.
Create a widget set inherited from Django-select2 to take access rules into account.
The simplest way to check rights is to return constant value, f.e. True
, False
, or {}
. In case of constant grant type, the code should be allowed to look like:
ApplyAblePlugin(
changeable=False,
deleteable=False,
),
instead of
ApplyAblePlugin(
changeable=lambda queryset, request: False,
deleteable=lambda queryset, request: False,
),
Existent checks for create and update doesn't concern to the new attribute values.
It may be important especially for the foreign key values when the only selected person can link the created or updated instance to the object which is visible, but readonly for others.
It is proposed to create a check like verify_appendable()
and verify_updateable()
with parameters:
updateable
)Fix standard has_perm
calls to be compatible with packages checking permissions using has_perm
call.
There may be a package using calls to the User.has_perm
Probably the own authentication backend should be implemented.
django.contrib.auth.decorators.permission_required
replacement
It's sometimes useful to log evaluation details for the access rules.
Template variables like {{ perms }} or something to check particular permissions for the whole model, or for the particular instance or for the instance set.
Create appropriate ability checking tools like permission checking in standard Django environment and Django-Rules package:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.