scipost.templatetags.user_groups module

scipost.templatetags.user_groups.is_ed_admin(user)[source]

Assign template variable (boolean) to check if user is Editorial Administator. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_scipost_admin(user)[source]

Assign template variable (boolean) to check if user is SciPost Administrator. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_financial_admin(user)[source]

Assign template variable (boolean) to check if user is Financial Administrator. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_active_fellow(user)[source]

Assign template variable (boolean) to check if user is member of Editorial College group.

scipost.templatetags.user_groups.is_advisory_board(user)[source]

Assign template variable (boolean) to check if user is in Advisory Board. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_vetting_editor(user)[source]

Assign template variable (boolean) to check if user is in Vetting Editor. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_ambassador(user)[source]

Assign template variable (boolean) to check if user is Ambassador. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_junior_ambassador(user)[source]

Assign template variable (boolean) to check if user is Junior Ambassador. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_registered_contributor(user)[source]

Assign template variable (boolean) to check if user is Registered Contributor. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_tester(user)[source]

Assign template variable (boolean) to check if user is Tester. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_production_officer(user)[source]

Assign template variable (boolean) to check if user is Production Officer. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.is_editor_in_charge(user, submission)[source]

Assign template variable (boolean) to check if user is Editorial Administator. This assignment is limited to a certain context block!

scipost.templatetags.user_groups.recommend_new_totp_device(user)[source]

Check if User has no TOTPDevice, but still has a high level of information access.