aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/admin
Commit message (Collapse)AuthorAgeLines
* prevent editing of category names with hardcoded flagStruan Donald2020-10-28-0/+65
| | | | | | | | | | | | If a category has hardcoded set to 1 in it's extra metadata then prevent the name being edited in the admin. This is to avoid issues where the name of the category is used in e.g. layers or other configuration and changing it breaks things. Also includes admin interface for setting this that is restricted to super users only. Fixes mysociety/fixmystreet-commercial#1992
* allow bulk removal of staff status from usersStruan Donald2020-10-23-0/+49
| | | | | | | Bulk option to remove body, roles and permisions, and disable login in admin for users. Fixes mysociety/fixmystreet-commercial#2025
* Show all category history even if category renamedM Somerville2020-10-07-0/+1
|
* Don’t strip all spaces from Open311 categories.M Somerville2020-10-02-1/+2
| | | | | | If a category’s send method is Open311, only strip spaces from the ends of the code. We are aware of active Open311 servers that have codes with spaces in the middle.
* Add database index for user full text search.M Somerville2020-08-06-2/+0
|
* Merge branch 'issues/commercial/1886-site-wide-permissions'Matthew Somerville2020-07-16-0/+27
|\
| * [UK] Show message if site-wide update disallowed.Matthew Somerville2020-07-14-0/+27
| |
* | Centralise update creation to include fields.Matthew Somerville2020-07-14-21/+5
|/ | | | | | Given the user, we can infer the name if not provided, and the extra data if a staff user. We can also provide defaults for various other fields. Always have superuser take precedence over from_body.
* Display contents of lists in report extra data in adminDave Arter2020-07-02-4/+16
|
* admin interface for per category anonymous reportingStruan Donald2020-05-12-0/+34
| | | | | | | | Add an interface to enable a category to accept anonymous reports, plus the code to handle permitting this. It's only available on single body cobrand sites in the default configuration.
* display user detail for contributed_by in report_editStruan Donald2020-05-12-0/+17
| | | | Include name, email and body rather than just user id.
* Merge branch 'tfl-category-restrictions'Matthew Somerville2020-05-12-1/+19
|\
| * Add assigned_(users|categories)_only functionalityMatthew Somerville2020-05-08-1/+19
| | | | | | | | | | | | | | | | Users with assigned_categories_only will only see staff features on a report page in their assigned categories. Users will only see staff features on a report page in a category with assigned_users_only if it is in their assigned categories.
* | Disable rename on unprotected Open311 categories.Matthew Somerville2020-05-11-0/+2
|/ | | | | | If you rename an Open311 category when it is not protected, it will only get reinstated/deleted by the Open311 populate script shortly after, and can cause issues due to the problem category renaming that occurs.
* Add way to disallow report reopening in a categoryMatthew Somerville2020-05-07-0/+11
| | | | | Add a tickbox to the category admin, and do not allow reopening on reports made in the selected categories.
* Add ability to disallow updates in a category.Matthew Somerville2020-05-06-0/+11
| | | | | Add a tickbox to the category admin, and do not allow updates on reports made in those selected categories.
* Add contact flag to protect category/group names from Open311 changesDave Arter2020-04-28-0/+11
| | | | | | | Adds a new tickbox to the contact editing form that protects the category and group names from being changed by Open311. For mysociety/fixmystreet-commercial#1776
* [UK Councils] Superusers cannot be edited by staffMatthew Somerville2020-03-09-1/+4
|
* Use ManifestTheme theme_colour for front page theme-color meta tagDave Arter2020-02-26-4/+4
|
* Show available cobrands in dropdown on FMSDave Arter2020-02-26-1/+4
| | | | | | | For some reason switching to a Select stopped the update_model changes being applied when persisting the model, meaning the INSERT query failed because the cobrand column was null. This commit switches to a hidden input field for the cobrand which I’m not super keen on, but it does get the job done...
* Add manifest icon management to admin formsDave Arter2020-02-26-5/+98
|
* Add admin UI for configuring manifest themeDave Arter2020-02-26-0/+244
|
* Fix error hiding user's updates with no confirmed.Matthew Somerville2020-02-26-1/+10
| | | | | | If a user had no confirmed updates, but did have e.g. an unconfirmed update that had mark_fixed set, you would get an error when trying to hide the user's reports/updates.
* Scrub admin description fields.Matthew Somerville2020-01-09-3/+3
|
* Clear any categories from user when unsetting from_bodyDave Arter2020-01-06-0/+24
| | | | This was most likely the cause of #2815.
* [TfL] Server-side red route lookup for new report categoriesDave Arter2019-12-12-1/+1
| | | | | | | | | | | | | | | | | | | | This commit checks the RedRoutes WFS layer on tilma to determine if the point at which a new report is being made is on a TfL red route. The returned categories are then adjusted accordingly: - If on a red route, all TfL categories as well as borough categories specific to street cleaning are returned. - If not on a red route, all borough categories as well as TfL categories that don't require a red route are returned. - This category tweaking doesn't happen on the TfL cobrand, as the JS handles it by signposting users to fixmystreet.com for borough reports. Doing the lookup server side means the app always shows the right categories to the user and prevents them e.g. sending a borough flytipping report to TfL. Fixes https://github.com/mysociety/fixmystreet-commercial/issues/1716
* [TfL] Restrict reports on cobrand to post go-live.Matthew Somerville2019-12-09-8/+1
|
* [TfL] Mandate 2FA for non-internal-IP staff users.Matthew Somerville2019-12-09-0/+1
|
* Group categories on response template edit page, if cobrand allowsDave Arter2019-12-09-0/+45
|
* [UK Councils] Ensure response templates owned by other bodies aren’t visibleDave Arter2019-12-09-0/+65
|
* [Oxfordshire] re-enable inspector permissionsStruan Donald2019-11-22-19/+0
| | | | | Re-enable the inspector permissions that were disabled at a cobrand level
* Replace use of FixMyStreet::App with DB in tests.Matthew Somerville2019-11-22-32/+32
|
* Add user admin log page.Matthew Somerville2019-11-08-3/+44
|
* Store a moderation history on admin report edit.Matthew Somerville2019-11-08-0/+7
|
* Add admin log entry for more objects and things.Matthew Somerville2019-11-08-1/+1
| | | | | Namely templates, roles, bodies, categories, various user edits, and when using the inspect form and changing category.
* Factor out admin template code to own controller.Matthew Somerville2019-11-08-2/+0
|
* [UK] Mandate 2FA on superusers.Matthew Somerville2019-10-30-0/+2
|
* Remove unused inspection required/reputation code.Matthew Somerville2019-10-28-1/+0
|
* Allow editing of category name.Matthew Somerville2019-10-25-1/+16
|
* Make contact edit note optional on staging sites.Matthew Somerville2019-10-25-1/+1
|
*-. Merge branches 'use-right-asset-name', 'deadlock', ↵Matthew Somerville2019-10-04-77/+67
|\ \ | | | | | | | | | '2469-fancy-admin-category-form' and 'fix-missing-body-message-flash'
| | * Restructured admin category extra-metadata-formZarino Zappia2019-10-03-66/+56
| |/ |/| | | | | | | | | | | | | | | * Much simplified display of metadata field options. * Fields can now be dragged into the desired order. * Drop-down question form disabling can now have a different message per option. Co-Authored-By: Matthew Somerville <matthew@mysociety.org>
| * Per-test file email addresses.Matthew Somerville2019-10-03-11/+11
|/
* Merge branch '2469-improve-admin-category-form'Matthew Somerville2019-09-30-4/+21
|\
| * Add top disable-form field to admin category form.Matthew Somerville2019-09-30-0/+18
| |
| * Rejig top-level part of admin category form.Matthew Somerville2019-09-30-4/+3
| | | | | | | | Co-Authored-By: Zarino Zappia <mail@zarino.co.uk>
* | Merge branch 'zurich-staging'Matthew Somerville2019-09-30-2/+2
|\ \
| * | [Zurich] Allow external body to link to a categoryMatthew Somerville2019-09-30-2/+2
| |/
* | [IsleOfWight] do not send comment recording triage actionStruan Donald2019-09-27-2/+1
| | | | | | | | | | This is only used for audit purposes on FixMyStreet and not required in Confirm.
* | do not send triage comments in alertsStruan Donald2019-09-27-0/+15
| | | | | | | | | | | | add a check into the Alerts script to skip comments that have `triage_report` set in extra. Otherwise we send these our in new_updates alerts.