Django-improved-permissions

Latest version: v0.2.2

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.1

or
1. Download the zip file;
2. Run ``pip install 0.2.1.zip``

Major Changes
* Persistent Mode
* Keeps checking the permission in inherit mode even if find a ``False``.

Minor Changes
* New optional kwarg in the ``has_permission`` shortcut: ``persistent``
* ``True``: Persistent mode enabled
* ``False``: Persistent mode disabled
* ``None``: Fallback in the dict settings (default)
* New optional kwarg in the ``has_permission`` shortcut: ``any_object``
* ``True``: Check if user has the following permission to ANY object
* ``False``: Check if user has the following permission ONLY to that object (default)

0.1.3

or
``pip install 0.1.3.zip``

**New Changes**:
* New feature: Role Ranking (solve conflits in permissions)
* New shortcut: ``remove_all(role_class, obj=None)``
* Shortcut ``get_users`` now returns QuerySet instead of list

**Bugfixes from previous releases**:
* Unpredictable behavior using multiple roles attached to the same (user, object). - Pull 16
* Cache key might generate conflits - Pull 13

**Bugs reported in this release:**
* Issue 17 - Models using nullable ForeignKey as permission parent might cause abnormal behavior.
* *waiting*

0.1.2

or
``pip install 0.1.2.zip``

**Bugs reported in this release:**
* Models with static ``__str__()`` might generate cache key conflits;
* Multiple roles attached to the same user & object, using equal permissions but different accesses result in unpredictable behavior;

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.