mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Add platform admin button to enable caseworking
Eventually the ability to have the caseworking view for your service will be self-service. But while we’re still building it only we should be able to enable it, for our own testing purposes. So this commit adds platform admin functionality to switch the feature on and off for our services.
This commit is contained in:
@@ -322,6 +322,14 @@ def service_switch_email_auth(service_id):
|
||||
return redirect(url_for('.service_settings', service_id=service_id))
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/service-settings/caseworking")
|
||||
@login_required
|
||||
@user_is_platform_admin
|
||||
def service_switch_caseworking(service_id):
|
||||
switch_service_permissions(service_id, 'caseworking')
|
||||
return redirect(url_for('.service_settings', service_id=service_id))
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/service-settings/can-send-precompiled-letter")
|
||||
@login_required
|
||||
@user_is_platform_admin
|
||||
|
||||
Reference in New Issue
Block a user