aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2018-11-01 15:19:53 +0000
committerStruan Donald <struan@exo.org.uk>2018-11-19 13:29:49 +0000
commit3d7523690accf22af95704394832d8e675472a4b (patch)
treec5e70860c89cbaf362c81e27cb8cf04c67a413b3 /bin
parentb4618c61ff5ddf6db9662b06bc55a0f74b43c903 (diff)
add report_prefill user permission
If set then when the user creates a new body report it will prefill the report title and description with some basic text. For mysociety/freshdesk#23
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fixmystreet.com/fixture6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/fixmystreet.com/fixture b/bin/fixmystreet.com/fixture
index 8e943a5b5..1ca840c71 100755
--- a/bin/fixmystreet.com/fixture
+++ b/bin/fixmystreet.com/fixture
@@ -84,9 +84,15 @@ my $perms_cs = [
'contribute_as_body', 'contribute_as_another_user',
'moderate', 'view_body_contribute_details',
];
+my $perms_cs_full = [
+ 'contribute_as_body', 'contribute_as_another_user',
+ 'moderate', 'view_body_contribute_details',
+ 'report_prefill', 'default_to_body'
+];
foreach (
{ name => 'Inspector Gadget', email => 'inspector@example.org', email_verified => 1, body => $body, permissions => $perms_inspector },
{ name => 'Harriet Helpful', email_verified => 1, email => 'cs@example.org', body => $body, permissions => $perms_cs },
+ { name => 'Andrew Agreeable', email_verified => 1, email => 'cs_full@example.org', body => $body, permissions => $perms_cs_full },
{ name => 'Super User', email_verified => 1, email => 'super@example.org', body => $body, permissions => [
@$perms_cs, @$perms_inspector, 'report_edit',
'category_edit', 'template_edit', 'responsepriority_edit',