aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
Commit message (Collapse)AuthorAgeLines
* Add UI for managing category reputation thresholdDave Arter2016-09-23-0/+3
|
* Add ‘trusted’ flag allowing users to make reports directlyDave Arter2016-09-20-2/+31
| | | | | When a trusted user makes a report in a category that requires inspection, it'll be sent immediately (i.e. without being inspected first).
* Remove from_body requirement from User::has_permission_toDave Arter2016-09-20-1/+1
|
* Don't reject email when editing Open311 contactsDave Arter2016-09-20-2/+6
| | | | Fixes (the first part of) #1138.
* Fix admin user search for non-superusersDave Arter2016-09-16-9/+11
|
* [Zurich] Restore admin user edit functionalityDave Arter2016-09-16-2/+2
| | | | | | - Zurich users don't need permission to access user_edit page - from_body can be set to any body by Zurich admin users, not just their own - Don't show the area field on user_edit form
* Add new category_edit restriction for viewing body admin.Matthew Somerville2016-09-09-3/+9
|
* Admin flagged page for superusers only.Matthew Somerville2016-09-09-8/+7
| | | | Adapt code so that it could be opened up more in future.
* Better generic 403/404 pages.Matthew Somerville2016-09-09-9/+9
| | | | Stop IDs being shown on 404 pages, provide a nicer message on 403 pages.
* Add manage screen for editing priority/category.Matthew Somerville2016-09-09-10/+7
| | | | | | | This is a cut-down version of the full inspect screen. We truncate the co-ordinates just in case (they should be anyway but e.g. the test report isn't).
* Add ‘Inspection required’ field to categoriesDave Arter2016-09-09-1/+7
| | | | | | | | | | | Categories can now require reports to be marked as 'inspected' via the frontend before they're sent by send-reports. A side-effect here is that send-reports will perform an extra n queries for each report, where n is the number of bodies that report is being sent to, but hopefully in practice this won't matter as it's an offline cronjob. See mysociety/fixmystreetforcouncils#50
* Simplify some permissions logic with extra helper methodDave Arter2016-09-08-5/+4
|
* Extend response templates to work across all cobrandsDave Arter2016-09-08-36/+66
| | | | | | | | | | | This builds on the response templates in the Zürich cobrand: - Allow response templates to be assigned to categories - Also adds a auto_response flag, which will be used to automatically create updates when reports are made. - Include response templates select box on update form For mysociety/fixmystreetforcouncils#31
* Add inspector report detail viewDave Arter2016-09-06-6/+65
| | | | | | | | | | | | | Users with the `report_inspect` permission can click a new 'inspect' button on a report page to input more detailed problem information into a new form that appears in a column alongside the report detail. - Inspector data is stored in problem's 'extra' field - Report category/state can be edited - Location can be changed by dragging the pin or HTML5 geolocation (Factored out Zurich admin pin drag into own function) For mysociety/fixmystreetforcouncils#22
* Allow user to have an area assigned in adminDave Arter2016-08-22-1/+38
|
* Restrict admin config/stats pagesDave Arter2016-08-17-21/+9
| | | | | The config page is only accessible by superusers. The stats page only shows figures for the user’s from_body unless superuser.
* Allow user permissions to be granted/revoked in adminDave Arter2016-08-17-3/+26
|
* Restrict from_body editing to superusersDave Arter2016-08-17-1/+9
| | | | | | | Superusers can set a user's from_body to any value, but a normal staff user can only set another user's from_body to the same as their own or undefined. This is presented in the UI as a 'staff' tickbox.
* Restrict user editing in adminDave Arter2016-08-17-3/+9
| | | | | | | | The 'user_edit' permission is required to edit users. The admin pages on UK council cobrands only allow editing of users whose from_body is the same as the logged-in user, or who have sent reports or updates to the council.
* Require 'report_edit' permission for editing reports in adminDave Arter2016-08-17-0/+7
|
* Fix other "keys on reference" warning.Matthew Somerville2016-08-08-1/+1
| | | | This is a continuation of b45b29c8.
* Test for Image::Magick installation better.Matthew Somerville2016-08-01-1/+0
| | | | (VERSION disappears in some recent version.)
* Fix "keys on reference is experimental" warning in Perl 5.20+Dave Arter2016-07-21-1/+1
|
* Respect cobrand restriction for unsent reportsDave Arter2016-07-19-1/+1
|
* Disallow empty name when creating/editing bodies in adminDave Arter2016-07-19-17/+32
|
* Restrict add/editing of bodies in admin to superusersDave Arter2016-07-19-2/+7
|
* Use normal user authentication to control access to /adminMatthew Somerville2016-07-19-3/+9
| | | | | | | | | - Adds is_superuser flag to User - Logged-in user must be a superuser or have from_body set in order to access anything within /admin - has_permission_to on a superuser will always return true - Only superusers can create/grant superusers - New `createsuperuser` command for creating superusers
* Allow editing of category on admin report edit.Matthew Somerville2016-07-15-1/+27
| | | | This also updates the body column to match the category.
* Add external field editing to admin report edit.Matthew Somerville2016-06-29-47/+20
| | | | Show bodies for which details are missing, and any send method used.
* Improve admin report edit page.Matthew Somerville2016-06-29-17/+14
| | | | | Show map, break into two columns, fix display of sent time after clicking "Mark as sent", tidy up labels.
* Warnfix when admin editing user.Matthew Somerville2016-06-22-1/+1
|
* Show any waiting reports on admin index page.Matthew Somerville2016-06-22-0/+7
|
* Allow admin to edit user's phone number.Matthew Somerville2016-06-22-0/+3
|
* Allow users to update their email address.Matthew Somerville2016-06-20-6/+1
|
* Improve CSRF tokens and add to more forms.Matthew Somerville2016-06-20-52/+18
|
* Add search boxes to admin index page, move stats.Matthew Somerville2016-05-20-27/+40
| | | | Move most index page statistics to their own pages.
* Fix removal of cached update photos.Matthew Somerville2016-05-18-2/+2
| | | | | It was possible that rotating an update photo did not remove its cached copy.
* Allow change of email in admin to existing entry.Matthew Somerville2016-04-27-3/+15
|
* Remove some unused cobrands.Matthew Somerville2016-04-20-12/+0
|
* Helper function for fetching database secret.Matthew Somerville2016-02-19-2/+2
|
* Exclude update alerts from summary alert counts.Matthew Somerville2016-02-09-1/+1
| | | | | | There might be the odd update alert we are interested in (those not auto-signed up for as part of report or update creation), but they will be rare.
* Add ability to have multiple update photos.Matthew Somerville2016-01-12-10/+15
| | | | Also adds admin ability to rotate update photos.
* Remove most passing of Catalyst to PhotoSet.Matthew Somerville2016-01-12-2/+2
|
* Handle multiple photo rotation/removal in admin.Matthew Somerville2016-01-08-3/+31
|
* Fix cobrand restriction of My/Nearby.Matthew Somerville2015-12-15-8/+4
| | | | | | | | | | | | 5c79337 simplified a bit too far, as after then a particular cobrand could in Nearby and My only filter reports to a particular body, not any other criteria. To fix this, introduce more generic functions in the default cobrand to allow more flexibility. Make sure a few tests delete their bodies fully so that new tests pass when run as part of the suite. Fixes #1289.
* Make sure email and name are given in admin form.Matthew Somerville2015-12-09-8/+14
|
* Speed up admin front page.Matthew Somerville2015-10-23-1/+3
| | | | | | | | * Don't show a categories summary unless asked via a link * Don't needlessly join in questionnaire/update summaries * Switch count(distinct()) to a subselect as it turns out select count(*) from (select distinct(user_id) from problem) temp; is a lot quicker than select count(distinct(user_id)) from problem;
* [Zurich] Use FMS::App->get_param() instead of req->paramDave Arter2015-10-06-7/+6
|
* [Zurich] Add maps to Zurich admin report print viewZarino Zappia2015-10-06-0/+1
| | | | | | | | | | | | | | | | - Includes a small map at the top of the first page and a second full-width map on a separate page. - upgrades tiles to the new 512px ones already used by JS as implemented in https://github.com/mysociety/FixMyStreet-Commercial/issues/668 - Uses jQuery to clone a copy of the "noscript" map elsewhere into the DOM, because the original is too far from where we need it. - extracts maps/openlayers.html to call maps/noscript_map.html - specialises the Zurich version to allow a richer structure to be returned, including arbitrary sized map - Map::Zurich now returns nearly arbitrary sized map tiles - second larger map is prepared (only for admin/report_edit) See mysociety/FixMyStreet-Commercial#677
* [Zurich] Tweaks to redirectHakim Cassimally2015-10-06-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See mysociety/FixMyStreet-Commercial#690 I understand redirection to summary page was introduced at ZWN's request, to make it easy to process reports and then quickly move onto the next one. However, during testing now, Tobias has mentioned this is a) slowing things down and b) confusing because it's not obvious that the report has been saved. I've tried to address (b) by adding the "Aktualisiert!" message when you are redirected. Also, for (a) I've removed the redirection from a few cases, and disabled it for superuser. If need be, I can remove redirection from more (or all) cases. Fix Official answer/Reply to user - hide label for status update on state change - correct wording on button for closure (single wording) - correct wording on label for user reply (either "Official answer" or "Reply to user" as appropriate) - Make sure the official response texts are shown for edit/static as appropriate, and test. - javascript improvements - honour public status update for Extern/Wunsch too - don't show public message for Wunsch - Ignore all other fields when rotating photos. (See mysociety/FixMyStreet-Commercial#718)