rsinger86 / drf-access-policy

Declarative access policies/permissions modeled after AWS' IAM policies.
https://rsinger86.github.io/drf-access-policy/
MIT License
472 stars 50 forks source link

Removes unintentional shared state on boolOperand which was causing #83 #86

Closed mari8i closed 2 years ago

mari8i commented 2 years ago

Fixes https://github.com/rsinger86/drf-access-policy/issues/83

I've been able to test this only in a private project and not with tests. However, "refreshing the page 100+ times" did not show any problems, while before this fix there was a good 90% chance to bump into it.

Comment https://github.com/rsinger86/drf-access-policy/issues/83#issuecomment-1153285628 pointed out the problem perfectly.