Permissions
hypha.apply.funds.permissions
¶
permissions_map
module-attribute
¶
permissions_map = {'submission_view': is_user_has_access_to_view_submission, 'submission_edit': can_edit_submission, 'can_view_submission_screening': can_view_submission_screening, 'archive_alter': can_alter_archived_submissions}
has_permission
¶
Source code in hypha/apply/funds/permissions.py
can_edit_submission
¶
delete_submission
¶
Determines if a user has permission to delete a submission.
Permissions are granted if: - User is a Superuser, or StaffAdmin - User has explicit delete_applicationsubmission permission - User is the applicant of the submission and it is in draft state
Source code in hypha/apply/funds/permissions.py
can_bulk_delete_submissions
¶
can_bulk_update_submissions
¶
get_archive_view_groups
¶
Returns a list of groups that can view archived submissions
Source code in hypha/apply/funds/permissions.py
can_view_archived_submissions
¶
Return a boolean based on if a user can view archived submissions
Source code in hypha/apply/funds/permissions.py
get_archive_alter_groups
¶
Returns a list of groups that can archive & unarchive submissions
Source code in hypha/apply/funds/permissions.py
can_alter_archived_submissions
¶
Return a boolean based on if a user can alter archived submissions
Source code in hypha/apply/funds/permissions.py
can_bulk_archive_submissions
¶
can_change_external_reviewers
¶
External reviewers of a submission can be changed by lead and staff.
Staff can only change external reviewers if the GIVE_STAFF_LEAD_PERMS
setting is enabled. Superusers can always change external reviewers.