Skip to content

Releases: rsinger86/drf-access-policy

1.5.0

02 Mar 15:42
68c4c2b
Compare
Choose a tag to compare
  • Adds Statement dataclass as alternative to dictionaries. Drops Python 3.5 support.

1.4.0

02 Mar 14:38
Compare
Choose a tag to compare
  • Fixes read-only scenario for FieldAccessMixin. Thanks @hungryseven!

1.3.0

09 Oct 00:18
Compare
Choose a tag to compare
  • Adds PermittedSlugRelatedField to re-use scope_queryset methods on policies. Thanks @bradydean!

1.2.0

01 Oct 23:49
Compare
Choose a tag to compare
  • Adds PermittedPkRelatedField to re-use scope_queryset methods on policies.

1.1.2

02 Jul 20:56
Compare
Choose a tag to compare
  • Fixes issue with boolean parser and shared request state. Thanks @mari8i!

1.1.1

01 May 19:13
Compare
Choose a tag to compare
  • 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

29 Aug 19:20
8c46304
Compare
Choose a tag to compare
  • Adds a mixin for explicitly defining a single access policy per ViewSet.

1.0.1

09 Jul 05:05
Compare
Choose a tag to compare
  • Fixes race condition between concurrent requests in evaluation of condition expressions. Thanks @goranpavlovic!

1.0.0

06 Jul 01:10
Compare
Choose a tag to compare

⚠️ Breaking Change ⚠️

  • 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

05 Jul 20:33
Compare
Choose a tag to compare
  • Allow defining reusable_conditions in settings as a list. Thanks @HonakerM!