Decorators
hypha.apply.users.decorators
¶
staff_required
module-attribute
¶
staff_required = [login_required, user_passes_test(is_apply_staff)]
staff_admin_required
module-attribute
¶
staff_admin_required = [login_required, user_passes_test(is_apply_staff_admin)]
finance_required
module-attribute
¶
finance_required = [login_required, user_passes_test(is_finance)]
staff_or_reviewer_required
module-attribute
¶
staff_or_reviewer_required = [login_required, user_passes_test(is_apply_staff_or_reviewer_required)]
staff_or_finance_required
module-attribute
¶
staff_or_finance_required = [login_required, user_passes_test(is_apply_staff_or_finance)]
approver_required
module-attribute
¶
approver_required = [login_required, user_passes_test(is_approver)]
staff_or_finance_or_contracting_required
module-attribute
¶
staff_or_finance_or_contracting_required = [login_required, user_passes_test(is_apply_staff_or_finance_or_contracting)]
contracting_approver_required
module-attribute
¶
contracting_approver_required = [login_required, user_passes_test(is_contracting_approver)]
require_oauth_whitelist
¶
Simple decorator that limits the use of OAuth to the configure whitelisted domains