Drf-access-policy

Latest version: v1.5.0

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

Scan your dependencies

Page 2 of 5

1.1.0

- Adds a mixin for explicitly defining a single access policy per `ViewSet`.

1.0.1

- Fixes race condition between concurrent requests in evaluation of condition expressions. Thanks goranpavlovic!

1.0.0

:warning: **Breaking Change** :warning:
- The `condition` element no longer supports the evaluation of multiple methods joined with boolean logic. These statements must be updated to use the new `condition_expression` element, which _does support_ complex boolean logic. See [migration notes](https://rsinger86.github.io/drf-access-policy/migration_notes.html).

0.9.2

- Allow defining `reusable_conditions` in settings as a list. Thanks HonakerM!

0.9.1

- Fixes principal compatibility when `request.user` is `None`. The user is treated as anonymous.

0.9.0

Adds special admin and staff principal keys to match users with is_superuser and is_staff set to True. Thanks BarnabasSzabolcs!

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.