Make `is_staff` true when a user is Staff Admin (#3841)
Fixes #3782. Rather than having `is_staff` set to true when a user's email is the org's domain, this sets it true when a user is Staff Admin or a Superuser. Also includes a migration to handle existing cases where Staff Admins are not `is_staff`. Co-authored-by:Sandeep Chauhan <sandeepsajan0@gmail.com> Co-authored-by:
Saurabh Kumar <theskumar@users.noreply.github.com>
Showing
- hypha/apply/funds/templates/funds/applicationsubmission_detail.html 2 additions, 1 deletion...y/funds/templates/funds/applicationsubmission_detail.html
- hypha/apply/users/migrations/0024_update_is_staff.py 22 additions, 0 deletionshypha/apply/users/migrations/0024_update_is_staff.py
- hypha/apply/users/pipeline.py 0 additions, 13 deletionshypha/apply/users/pipeline.py
- hypha/apply/users/utils.py 19 additions, 0 deletionshypha/apply/users/utils.py
- hypha/apply/users/wagtail_hooks.py 6 additions, 1 deletionhypha/apply/users/wagtail_hooks.py
- hypha/settings/base.py 0 additions, 1 deletionhypha/settings/base.py
Loading
Please register or sign in to comment