jazzband / django-waffle

A feature flipper for Django
https://waffle.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.12k stars 258 forks source link

Make is_active_for_user consider when everyone is False #498

Open chess-octane opened 6 months ago

chess-octane commented 6 months ago

This adds a check to the is_active_for_user method to consider when the attribute everyone is False.

Fixes #401

joshkersey commented 2 months ago

I disagree with @minhtrangvy. This is a bug in the code. The documentation makes it clear what the expectation for the Everyone attribute is: Everyone: | Globally set the Flag, overriding all other criteria. Leave as Unknown to use other criteria.