aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-05-19 12:05:05 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-05-26 12:41:32 +0100
commit36baff2d6ea23dc6648160ce82e40e0e9f6d7bda (patch)
tree75180d941c49e6e20661ec97bad4c78feef97165 /templates
parent018193054d34778488ed8e5a1669eb9e03c317cd (diff)
[Oxfordshire] Use instruct perm to filter state.
Without the report_instruct permission, the 'action scheduled' state is not an option in the dropdown.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/oxfordshire/report/inspect/state_groups_select.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/web/oxfordshire/report/inspect/state_groups_select.html b/templates/web/oxfordshire/report/inspect/state_groups_select.html
index d9db3864a..529e6f403 100644
--- a/templates/web/oxfordshire/report/inspect/state_groups_select.html
+++ b/templates/web/oxfordshire/report/inspect/state_groups_select.html
@@ -11,11 +11,14 @@ SET state_pretty = {
SET state_groups = [
[ loc('New'), [ 'confirmed', 'investigating' ] ],
- [ loc('Scheduled'), [ 'action scheduled' ] ],
[ loc('Fixed'), [ 'fixed - council' ] ],
[ loc('Closed'), [ 'not responsible', 'duplicate', 'unable to fix' ] ]
];
+IF c.user_exists AND c.user.has_body_permission_to('report_instruct');
+ CALL state_groups.splice(1, 0, [ [ loc('Scheduled'), [ 'action scheduled' ] ] ]);
+END
+
%]
[% DEFAULT current_state = problem.state %]
[% INCLUDE 'report/_state_select_field.html' %]