mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-27 05:41:00 -05:00
Includes adding filtering to the user permissions data. Classes extending BasePermissionsForm have their user permissions handled by permissions_field which stores its data in a list. This replaces the previous approach of having a BooleanField for each role. Because permissions_field.data is taken directly from POST data, it needs extra guarding against values not present in whatever roles model the class is based on (ie. broadcast_permissions).