aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
...
| * Add two-factor authentication for superusers.Matthew Somerville2018-02-07-6/+53
| |
* | Merge branch '1944-admin-remove-account'Matthew Somerville2018-02-07-6/+28
|\ \
| * | Admin ability to remove user account details.Matthew Somerville2018-02-06-0/+16
| | |
| * | Add admin ability to log user out.Matthew Somerville2018-02-06-6/+12
| |/
* | Merge branch 'password-tests'Matthew Somerville2018-02-06-2/+39
|\ \
| * | Add length/common password checking.Matthew Somerville2018-02-06-2/+39
| |/
* | Upgrade Number::Phone.Matthew Somerville2018-02-05-3/+3
| | | | | | | | | | This brings in my new format_for_country function which allows for nicer display of phone numbers to people.
* | Ask for current pw/send email on password change.Matthew Somerville2018-02-01-2/+61
|/ | | | | If they have a current password, ask for it; if they don't, send a confirmation email.
* Merge branch '1942-admin-anonymize'Matthew Somerville2018-01-31-1669/+1937
|\
| * Split up admin test file into many separate files.Matthew Somerville2018-01-31-1694/+1937
| |
| * Admin ability to hide a user's reports/updates.Matthew Somerville2018-01-31-1/+14
| |
| * Admin ability to make user anonymous.Matthew Somerville2018-01-31-0/+12
| |
* | [Zurich] Allow publishing of individual photos.Matthew Somerville2018-01-18-52/+8
|/ | | | | When more than one photo has been uploaded, allow each one to be published/not independently.
* Fix bug specifying category in URL on /around.Matthew Somerville2018-01-04-5/+16
| | | | The list of existing categories wasn't being checked correctly.
* Fix spelling of administrator.Matthew Somerville2017-12-15-2/+2
|
* Bypass /around from postcode form if required.Dave Arter2017-12-13-0/+61
| | | | | | | | | | Cobrands can provide a `skip_around_page` method which means the user will be taken from the front page form directly to /report/new with a pin in the map at the location entered. This also preserves the category parameter, if specified on the front page form. Fixes #1730.
* Only allow one auto-response template per category/state.Dave Arter2017-12-04-5/+107
|
* Merge branch '1919-consolidate-statistics'Matthew Somerville2017-11-29-916/+139
|\
| * Consolidate summary statistics pages.Matthew Somerville2017-11-29-913/+131
| |
| * Refactor stats pages to their own controller.Matthew Somerville2017-11-29-0/+6
| |
* | allow dashboard CSV export access using token authStruan Donald2017-11-29-0/+16
| |
* | Staff user page for generating an access token.Struan Donald2017-11-29-0/+93
| | | | | | | | | | Adds a link from /my to a page for generating an access token which is then stored in the user's extra field.
* | Add an access token authentication credential.Matthew Somerville2017-11-29-0/+25
|/ | | | This allows access if you have a token associated with your user.
* Allow cobrands to disable moderation emailsDave Arter2017-11-22-0/+32
| | | | | | | This adds a new send_moderation_notifications method which can be overridden by cobrands to prevent “your report has been moderated” emails from being sent. Fixes mysociety/fixmystreet-commercial#936
* Treat dashboard end date as that given, inclusive.Matthew Somerville2017-11-16-1/+1
| | | | | If someone selects 15-16th November, they want reports from both those dates, not just the 15th.
* add date range options to council dashboardStruan Donald2017-11-14-0/+39
|
* allow admin to unban a userStruan Donald2017-11-07-5/+37
| | | | | | | Add an unban button to the user edit page when a user is in the abuse table. Fixes #1881
* do not override template when displaying body contacts as textStruan Donald2017-11-07-0/+1
| | | | | | | move setting the body template to before `fetch_contacts` so it doesn't override setting the text only email address template. Fixes #1895
* Fix issue editing user previously lacking a name.Matthew Somerville2017-11-07-1/+5
| | | | | The check that a name was entered was testing the user's current name, not the name entered in the form.
* Merge branch 'around-and-about-pagination'Matthew Somerville2017-11-06-7/+7
|\
| * Have /around ajax use same format as others.Matthew Somerville2017-11-02-7/+7
| | | | | | | | | | Both /reports and /my work by using the same URL with ajax=1. We should use the same on /around for consistency.
* | Remove shortlist form from inspect duplicate list.Matthew Somerville2017-11-02-5/+8
|/ | | | | This functionality isn't needed here, and causes an issue with the main form submitting due to a form inside a form.
* always allow problems to be removed from shortlistStruan Donald2017-10-27-0/+152
| | | | | | | | | | If a user is trying to remove a problem from their shortlist we should always allow it regardless of the state of the problem. Previously if a problem wasn't displayed on the site then it could not be removed from the shortlist which was an issue with council cobrands and reports that had changed body. Fixes mysociety/fixmystreetforcouncils#243
* Merge branch 'reports-dashboard-councils'Matthew Somerville2017-10-20-6/+13
|\
| * Allow testing override of /reports data.Matthew Somerville2017-10-16-6/+13
| |
* | [Oxfordshire] Add initials/traffic to RDI desc.Matthew Somerville2017-10-18-13/+13
| |
* | make sure duplicate id provided when marking as duplicateStruan Donald2017-10-17-0/+61
|/ | | | | | | It was possible to mark a report as a duplicate in the inspector panel without providing an id of the duplicate. This prevents that. Fixes mysociety/fixmystreetforcouncils#236
* Merge branch 'sms-mssid-error'Matthew Somerville2017-10-16-25/+21
|\
| * Spot errors coming back when sending text.Matthew Somerville2017-10-12-25/+21
| |
* | log all state changes in admin as commentsStruan Donald2017-10-16-9/+283
|/ | | | | | | | | | | | Create a comment on a problem when the admin is used to change the state of the problem. If only the state is changed then create a comment with blank text. If the category and state are changing then include details of the category change in the comment. Not all the state changes are displayed at the template level by default. Fixes #1846
* Merge branch 'issues/forcouncils/231-multi-ward-reports-view'Matthew Somerville2017-10-09-0/+12
|\
| * Allow ward page to show multiple wards.Matthew Somerville2017-10-06-0/+12
| | | | | | | | | | URLs have to be manually constructed, but specifying multiple ward names separated by "|" will show all those wards and their reports on the map.
* | Fix issue sending alerts around no-text update.Matthew Somerville2017-10-06-1/+48
| | | | | | | | | | | | | | | | | | If there was a normal email alert, and then an alert for an update with no text (so no email should be sent), it would still try to send the blank email, and then die because no e.g. $data{cobrand} set. This moves the skip-blank-update check higher up, above any email sending code.
* | generate update text in alerts if problem state has changedStruan Donald2017-10-05-0/+181
| |
* | do not send blank problem update alertsStruan Donald2017-10-05-9/+2
| |
* | Merge remote-tracking branch 'origin/fix-geographic-mobile-numbers'Matthew Somerville2017-10-05-4/+4
|\ \
| * | Accept +1 geographic numbers as possibly mobile.Matthew Somerville2017-10-05-4/+4
| |/ | | | | | | | | We have no way of knowing whether a +1 geographic number is fixed line or mobile, so accept them all as potentially mobile.
* / Return page with "No results" if no ref found.Matthew Somerville2017-10-05-8/+15
|/ | | | | | This lookup is often performed by inspectors with appcache switched on, which means they were getting the intercepted Glitch page rather than a 404; give them a no results page instead.
* correctly handle category changes in inspector formStruan Donald2017-10-04-1/+126
| | | | | | | | | | | This resolves two issues when updating the report category in the staff users inspect form: * report category is only updated if the rest of the form is valid * only one update on the report is left Previously changing the category would create an update in addition to any public update created, and the category was always updated even when validation errors occurred elsewhere in the form.
* correctly handle average state changes of 0 days in area statsStruan Donald2017-10-04-0/+12
| | | | | If no problems have changed status then set the average to -1 so we can cope with an average status change of 0 days.