Drf Access Policy Versions Save

Declarative access policies/permissions modeled after AWS' IAM policies.

1.5.0

1 year ago
  • Adds Statement dataclass as alternative to dictionaries. Drops Python 3.5 support.

1.4.0

1 year ago
  • Fixes read-only scenario for FieldAccessMixin. Thanks @hungryseven!

1.3.0

1 year ago
  • Adds PermittedSlugRelatedField to re-use scope_queryset methods on policies. Thanks @bradydean!

1.2.0

1 year ago
  • Adds PermittedPkRelatedField to re-use scope_queryset methods on policies.

1.1.2

1 year ago
  • Fixes issue with boolean parser and shared request state. Thanks @mari8i!

1.1.1

2 years ago
  • Adds support for field-level permissions via a AccessPolicy.scope_fields(request, fields: dict, instance=None) method and the FieldAccessMixin. Thanks @gianpieropa!

1.1.0

2 years ago
  • Adds a mixin for explicitly defining a single access policy per ViewSet.

1.0.1

2 years ago
  • Fixes race condition between concurrent requests in evaluation of condition expressions. Thanks @goranpavlovic!

1.0.0

2 years ago

: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.

0.9.2

2 years ago
  • Allow defining reusable_conditions in settings as a list. Thanks @HonakerM!