aboutsummaryrefslogtreecommitdiffstats
path: root/web
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 /web
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 'web')
-rw-r--r--web/cobrands/fixmystreet/staff.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/staff.js b/web/cobrands/fixmystreet/staff.js
index a52595802..7fe12b04b 100644
--- a/web/cobrands/fixmystreet/staff.js
+++ b/web/cobrands/fixmystreet/staff.js
@@ -455,10 +455,9 @@ $.extend(fixmystreet.set_up, {
$(fixmystreet).on('report_new:category_change', function(evt, $this) {
var category = $this.val();
var prefill_reports = $this.data('prefill');
- var role = $this.data('role');
var body = $this.data('body');
- if (prefill_reports && role == 'inspector') {
+ if (prefill_reports) {
var title = 'A ' + category + ' problem has been found';
var description = 'A ' + category + ' problem has been found by ' + body;