jazzband / django-waffle

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

Add permissions for admin actions. #351

Closed PetterS closed 5 years ago

PetterS commented 5 years ago

https://docs.djangoproject.com/en/2.2/ref/contrib/admin/actions/#setting-permissions-for-actions

Very important since otherwise users who only has view access can still modify flags.

PetterS commented 5 years ago

Yes, there is a public method on ModelAdmin get_actions that we can use. Hold on.