| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Bulk option to remove body, roles and permisions, and disable login in
admin for users.
Fixes mysociety/fixmystreet-commercial#2025
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Include name, email and body rather than just user id.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
| |
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 a tickbox to the category admin, and do not allow reopening on
reports made in the selected categories.
|
|
|
|
|
| |
Add a tickbox to the category admin, and do not allow updates on
reports made in those selected categories.
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
| |
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...
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This was most likely the cause of #2815.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Re-enable the inspector permissions that were disabled at a cobrand
level
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Namely templates, roles, bodies, categories, various user edits,
and when using the inspect form and changing category.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ \
| | |
| | |
| | | |
'2469-fancy-admin-category-form' and 'fix-missing-body-message-flash'
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| | |
* 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>
|
|/ |
|
|\ |
|
| | |
|
| |
| |
| |
| | |
Co-Authored-By: Zarino Zappia <mail@zarino.co.uk>
|
|\ \ |
|
| |/ |
|
| |
| |
| |
| |
| | |
This is only used for audit purposes on FixMyStreet and not required in
Confirm.
|
| |
| |
| |
| |
| |
| | |
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.
|