mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Make people sign in to get the agreement
Currently we have a bunch of users who aren’t signed in asking us for the agreement. This is bad because: - it’s slower (for them) than just being able to download it - it creates work for us We can’t just offer the agreement to anyone, but we can offer to it to anyone who’s signed in because we now let people self-select which version to download when we can’t tell which one to give them.
This commit is contained in:
@@ -12,20 +12,16 @@ from app import (
|
||||
)
|
||||
from app.main import main
|
||||
from app.main.forms import Feedback, Problem, SupportType, Triage
|
||||
from app.utils import AgreementInfo
|
||||
|
||||
QUESTION_TICKET_TYPE = 'ask-question-give-feedback'
|
||||
PROBLEM_TICKET_TYPE = "report-problem"
|
||||
|
||||
|
||||
def get_prefilled_message():
|
||||
agreement_info = AgreementInfo.from_current_user()
|
||||
return {
|
||||
'agreement': (
|
||||
agreement_info.as_request_for_agreement()
|
||||
),
|
||||
'agreement-with-owner': (
|
||||
agreement_info.as_request_for_agreement(with_owner=True)
|
||||
'Please can you tell me if there’s an agreement in place '
|
||||
'between GOV.UK Notify and my organisation?'
|
||||
),
|
||||
}.get(
|
||||
request.args.get('body'), ''
|
||||
|
||||
Reference in New Issue
Block a user