aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Default.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-08-17 13:28:47 +0100
committerDave Arter <davea@mysociety.org>2017-08-17 13:28:47 +0100
commitadfbe1c2ef9335e86e4f177db2eb2adfa6249e52 (patch)
treec110c92155be4cfeadd91d1d663df0684c341929 /perllib/FixMyStreet/Cobrand/Default.pm
parentdd1cefa2d7751d3c7fb8ca4f3cb2f35efc2a8fd5 (diff)
parentfb03c300258b5d1dc419d7d08ecb3afa12a2fa5b (diff)
Merge branch '1743-report-extras-editing'
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Default.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index 852f380f0..5dcdc9a4b 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -668,6 +668,10 @@ sub admin_pages {
$pages->{users} = [ _('Users'), 6 ];
$pages->{user_edit} = [ undef, undef ];
}
+ if ( $self->allow_report_extra_fields && $user->has_body_permission_to('category_edit') ) {
+ $pages->{reportextrafields} = [ _('Extra Fields'), 10 ];
+ $pages->{reportextrafields_edit} = [ undef, undef ];
+ }
return $pages;
}
@@ -1221,5 +1225,16 @@ the 'n days ago' format is used. By default the absolute date is always used.
=cut
sub display_days_ago_threshold { 0 }
+=head2 allow_report_extra_fields
+
+Used to control whether site-wide extra fields are available. If true,
+users with the category_edit permission can add site-wide fields via the
+admin.
+
+=cut
+
+sub allow_report_extra_fields { 0 }
+
+
1;