aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* Merge branch 'staff-sign-up-other-user-for-alert'Matthew Somerville2020-01-09-28/+19
|\
| * Allow staff users to sign others up for alerts.Matthew Somerville2020-01-08-4/+12
| |
| * Check provided report ID for update alert signup.Matthew Somerville2020-01-08-24/+7
| | | | | | | | Remove some unused code.
* | Merge branch 'issues/commercial/1287-as-another-user-only-name'Matthew Somerville2020-01-09-3/+8
|\ \
| * | Allow report as another user with only name.Matthew Somerville2020-01-08-3/+8
| |/
* | Merge branch 'bexley-resend-okay'Matthew Somerville2020-01-09-2/+2
|\ \
| * | [Bexley] Resend on nearly all category changes.Matthew Somerville2020-01-08-1/+1
| | | | | | | | | | | | | | | The only exception is when the category change is between two categories in the same Symology database, in which case we do not want to resend.
| * | [Bexley] Allow resending, still hide resend buttonMatthew Somerville2020-01-08-1/+1
| |/
* / Hide ‘provide extra information’ preamble when no visible fields are presentDave Arter2020-01-07-0/+13
|/ | | | | | | | | For categories that use the extra metadata fields to just show a notice message to the user, the ‘help the council fix the problem by providing extra information’ text was a bit out of place. This commit hides it unless there are actual UI elements also included in the markup. Fixes #2811.
* Clear any categories from user when unsetting from_bodyDave Arter2020-01-06-0/+2
| | | | This was most likely the cause of #2815.
* Check area IDs non-empty in inspector redirect.Matthew Somerville2019-12-17-3/+3
|
* Store staff user when staff make anonymous report.Dave Arter2019-12-17-0/+7
| | | | | | If a staff user uses the anonymous button, it does not otherwise record which staff user did that; using Report As would store their user as the report's user.
* Do not hard code site name in database fixture.Matthew Somerville2019-12-10-2/+2
| | | | This also lets it be cobrand specific.
* [UK] Add SQL problem restrictions for RSS feeds.Matthew Somerville2019-12-09-2/+5
|
* [fixmystreet.com] Limit TfL cobrand report displayMatthew Somerville2019-12-09-1/+6
| | | | | | | | | On fixmystreet.com, you cannot view reports made on the TfL cobrand, apart from on reporting seeing pins labelled with the report's category, linking through to the TfL cobrand. Output the pin's base URL if different from normal, so e.g. app can link appropriately.
* [TfL] Resend report upon category change.Matthew Somerville2019-12-09-0/+4
|
* [TfL] Send email to shortlisted user upon update.Matthew Somerville2019-12-09-0/+2
|
* Allow cobrands to skip 2FA requirement.Matthew Somerville2019-12-09-4/+7
|
* Add cobrand hook for overriding areas on /reports wardsDave Arter2019-12-09-3/+1
|
* Do not include disable-form message in extras listMatthew Somerville2019-12-09-5/+11
| | | | | | | | | If the disable form message is being shown, the normal list is hidden, so there's no point in outputting the same message there. (This also helps with a TfL issue where we want to show a disable form on a red route, but not elsewhere, and this means it won't show the disable form message as a normal extra question.)
* Include areas in query param for inspector post-login redirect to all reportsDave Arter2019-12-09-18/+5
| | | | | Performs a proper redirect instead of detaching to /my/inspector_redirect so any request params from sign-in (e.g. password!) aren't carried through.
* Pre-filter ‘all reports’ by area for inspectorsDave Arter2019-12-09-0/+28
|
* Group categories on response template edit page, if cobrand allowsDave Arter2019-12-09-0/+2
|
* Group categories on user edit page, if cobrand has grouping enabledDave Arter2019-12-09-16/+30
|
* [UK Councils] Ensure response templates owned by other bodies aren’t visibleDave Arter2019-12-09-3/+9
|
* Switch to default-escaped in email templates.Matthew Somerville2019-12-09-1/+9
| | | | | We add a way to process a template with no auto-escaping, that can be used for the text parts of emails, and mark various HTML output as safe.
* Switch to default-escaped in templates.Matthew Somerville2019-12-09-4/+8
| | | | | | | This means any variable used in a template is automatically HTML-escaped, unless it is marked as safe either in code by using a SafeString, or in the template with the `mark_safe` function or the `safe` filter.
* add bodies_id to stash for around and report/newStruan Donald2019-11-26-0/+2
| | | | | | | | This resolved the problem of checking user body permissions on both around and report/new by adding a variable to stash specifically for this purpose. Previously staff users could not see the mark private tick if the report form was loaded via javascript from the around page as there was no bodies variable in the stash.
* Switch to internal QR code generator.Matthew Somerville2019-11-23-4/+4
|
* Rotate session ID after successful login.Matthew Somerville2019-11-22-3/+5
|
* Remove cached photos before updating db field.Matthew Somerville2019-11-18-2/+2
| | | | | If the photo field is updated first, then the cache removal doesn't think there are any photos to remove.
* Merge branch 'issues/freshdesk/98-staff-ignore-emergency-message'Struan Donald2019-11-15-0/+4
|\
| * allow staff to submit in disabled categoriesStruan Donald2019-11-15-0/+4
| | | | | | | | | | | | | | If a user belongs to a body override the disabled form check upon submission as mostly staff users can submit in those categories. Fixes mysociety/fixmystreet-freshdesk#98
* | Add cobrand-specific XSL to RSS feeds.Matthew Somerville2019-11-15-0/+15
|/
* Add user admin log page.Matthew Somerville2019-11-08-0/+32
|
* Store a moderation history on admin report edit.Matthew Somerville2019-11-08-1/+16
|
* Add admin log entry for more objects and things.Matthew Somerville2019-11-08-17/+21
| | | | | Namely templates, roles, bodies, categories, various user edits, and when using the inspect form and changing category.
* Ignore empty paragraphs in html_para.Matthew Somerville2019-11-08-1/+2
| | | | And do not generate them needlessly.
* Refactor user controller to use chained action.Matthew Somerville2019-11-08-9/+14
|
* Factor out admin reports code to own controller.Matthew Somerville2019-11-08-492/+514
|
* Factor out admin template code to own controller.Matthew Somerville2019-11-08-160/+176
|
* Fix password reset on 2FA accounts again.Matthew Somerville2019-11-05-2/+5
| | | | | | Just after fixing it, 3d593bc68 broke it again, because it took anyone who must have 2FA switched on to the must-have-2FA sign up flow, even if they already had 2FA set up.
* Merge branch 'password-expiry'Matthew Somerville2019-11-05-3/+45
|\
| * Add optional enforced password expiry.Matthew Somerville2019-11-04-2/+43
| |
| * Record time of password change.Matthew Somerville2019-11-04-1/+2
| |
* | Merge branch 'remove-extra-cat-heading'Matthew Somerville2019-10-31-12/+5
|\ \ | |/ |/|
| * Sort reporting categories in display order.Matthew Somerville2019-10-31-11/+4
| |
| * Do not output empty disable_form hash in ajax call.Matthew Somerville2019-10-29-1/+1
| |
* | Merge branch '2fa-improvements'Matthew Somerville2019-10-31-62/+85
|\ \
| * | If 2FA enforced, do it for an email login as well.Matthew Somerville2019-10-30-0/+31
| | |