Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Use EncodedColumn subclass. | Matthew Somerville | 2019-05-02 | -3/+3 |
| | ||||
* | Refactor datetime inflation. | Matthew Somerville | 2019-05-02 | -5/+9 |
| | ||||
* | Fix superusers creating anonymous reports. | Matthew Somerville | 2019-04-05 | -0/+5 |
| | ||||
* | Allow user to be associated with multiple areas. | Matthew Somerville | 2019-02-14 | -12/+27 |
| | | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection. | |||
* | Add cobrand hook for disallowing title moderation. | Matthew Somerville | 2018-09-13 | -0/+11 |
| | ||||
* | Prevent scan of all problems on /_dev pages. | Matthew Somerville | 2018-09-12 | -2/+2 |
| | ||||
* | Fix reference issue in can_moderate. | Matthew Somerville | 2018-09-06 | -2/+2 |
| | | | | Arguments in TT functions are passed as a hashref. | |||
* | Allow cobrand to add extra ability to moderate. | Matthew Somerville | 2018-08-29 | -2/+16 |
| | ||||
* | Move moderation check to own function, tidy up. | Matthew Somerville | 2018-08-28 | -2/+11 |
| | ||||
* | Use CSV escaping for categories in URLs. | Matthew Somerville | 2018-06-21 | -0/+12 |
| | | | | | Categories could contain commas, so splitting on comma is not good enough. Let’s escape the fields as if it’s a line in CSV. Fixes #2166. | |||
* | Update last_active on login/logout/session expiry. | Matthew Somerville | 2018-05-23 | -0/+7 |
| | ||||
* | Factor anonymize function to User model. | Matthew Somerville | 2018-05-23 | -0/+19 |
| | ||||
* | Add created and last_active columns to user. | Matthew Somerville | 2018-05-23 | -6/+20 |
| | ||||
* | Allow ‘report as another user’ to only provide a phone number | Dave Arter | 2018-02-07 | -0/+4 |
| | ||||
* | Merge branch '2fa-superuser' | Matthew Somerville | 2018-02-07 | -0/+5 |
|\ | ||||
| * | Add two-factor authentication for superusers. | Matthew Somerville | 2018-02-07 | -0/+5 |
| | | ||||
* | | Upgrade Number::Phone. | Matthew Somerville | 2018-02-05 | -1/+2 |
| | | | | | | | | | | This brings in my new format_for_country function which allows for nicer display of phone numbers to people. | |||
* | | Increase bcrypt cost. | Matthew Somerville | 2018-02-01 | -1/+5 |
|/ | | | | Though when running tests, decrease it for speed. | |||
* | Accept +1 geographic numbers as possibly mobile. | Matthew Somerville | 2017-10-05 | -1/+1 |
| | | | | | We have no way of knowing whether a +1 geographic number is fixed line or mobile, so accept them all as potentially mobile. | |||
* | Allow verify/change/add email/phone in profile. | Matthew Somerville | 2017-09-30 | -0/+7 |
| | | | | | | This expands the 'change email' functionality to work with phone number also, allow addition of missing details, and verifying of unverified details. | |||
* | Add ability to confirm reports/updates via text. | Matthew Somerville | 2017-09-30 | -5/+14 |
| | ||||
* | Update admin interface for 'phone' users. | Matthew Somerville | 2017-09-30 | -0/+13 |
| | | | | | | | This includes search/flagging users, editing user on the report and update edit pages, and user adding/editing itself. Add some more tests for user adding/editing. | |||
* | Add 'verified' database columns for email/phone. | Matthew Somerville | 2017-09-30 | -6/+14 |
| | | | | | These are so we can state whether a user's email address or phone number have been verified by confirmation email/text. | |||
* | Superusers only have permissions available on the current cobrand | Dave Arter | 2017-09-01 | -0/+10 |
| | ||||
* | Faster /reports for inspectors, reduce db queries. | Dave Arter | 2017-08-18 | -1/+11 |
| | ||||
* | Move alert signup logic out of controller | pezholio | 2017-05-05 | -0/+21 |
| | ||||
* | Merge branch 'listshort' | Matthew Somerville | 2017-01-12 | -0/+2 |
|\ | ||||
| * | Add shortlist buttons to report lists. | Matthew Somerville | 2017-01-12 | -0/+2 |
| | | | | | | | | | | | | | | This includes adding/removing reports from a user's shortlist, and manual reordering of a shortlist with up/down buttons. The backend code can cope with an item moving to any point in the list. | |||
* | | Update has_body_permission_to to allow superusers. | Matthew Somerville | 2017-01-10 | -6/+9 |
|/ | ||||
* | Only load user body permissions once per request. | Matthew Somerville | 2016-12-16 | -8/+16 |
| | | | | This should help if a template uses has_permission_to a lot. | |||
* | Fail in has_permission_to if given an empty arrayref. | Matthew Somerville | 2016-12-13 | -1/+1 |
| | ||||
* | Pre-filter map pages if user has categories assigned | Dave Arter | 2016-10-31 | -0/+15 |
| | | | | | This pre-filters the 'all reports' link in the main nav and the /around page reached via the front page postcode form | |||
* | Adding report to shortlist removes from others. | Matthew Somerville | 2016-10-11 | -5/+10 |
| | ||||
* | Fix bug in fetching existing shortlisted report. | Matthew Somerville | 2016-10-11 | -1/+1 |
| | | | | | It would always create a new report rather than return an existing one, if present. | |||
* | Update user reputation when inspecting report | Dave Arter | 2016-09-23 | -0/+8 |
| | ||||
* | Add 'extra' field to User model | Dave Arter | 2016-09-23 | -6/+14 |
| | ||||
* | Merge remote-tracking branch ↵ | Matthew Somerville | 2016-09-20 | -1/+1 |
|\ | | | | | | | 'origin/issues/forcouncils/89-tidy-report-admin-actions' | |||
| * | Organize report admin actions into single control. | Zarino Zappia | 2016-09-20 | -1/+1 |
| | | | | | | | | | | | | | | | | As part of this, rename "planned reports" to "shortlist". The `.segmented-control` component now supports basic usage (as in the admin report actions menu bar) and usage with hidden radio inputs and labels (as on the report questionnaire page). | |||
* | | Add ‘trusted’ flag allowing users to make reports directly | Dave Arter | 2016-09-20 | -0/+16 |
| | | | | | | | | | | 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_to | Dave Arter | 2016-09-20 | -7/+5 |
|/ | ||||
* | Add manage screen for editing priority/category. | Matthew Somerville | 2016-09-09 | -2/+18 |
| | | | | | | | 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). | |||
* | Simplify some permissions logic with extra helper method | Dave Arter | 2016-09-08 | -0/+23 |
| | ||||
* | Allow user to have an area assigned in admin | Dave Arter | 2016-08-22 | -2/+4 |
| | ||||
* | Add user planned reports. | Matthew Somerville | 2016-08-22 | -4/+42 |
| | | | | | | A user with the appropriate permission can add/remove reports from their list of planned reports using a button on a report page. The list can be viewed at /my/planned. | |||
* | Feature to create report as body/other user. | Zarino Zappia | 2016-08-10 | -0/+8 |
| | | | | | | | | | | | | This allows users who have the correct permissions to add reports on behalf of the body or another user. We enable editing of the email box by default, so that if JavaScript isn't available, someone can still change the email for the 'another user' option. For mysociety/fixmystreetforcouncils#10 and mysociety/fixmystreetforcouncils#11 | |||
* | Use normal user authentication to control access to /admin | Matthew Somerville | 2016-07-19 | -6/+10 |
| | | | | | | | | | - 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 users to update their email address. | Matthew Somerville | 2016-06-20 | -3/+24 |
| | ||||
* | Warnfix if belongs_to_body called with no string. | Matthew Somerville | 2016-05-24 | -2/+3 |
| | ||||
* | Remember user's last anonymous state. | Matthew Somerville | 2016-03-04 | -0/+10 |
| | | | | | If a user is logged in, use their last report/update to set the default anonymity state. | |||
* | Prerequisites (new modules, db, config). | Matthew Somerville | 2016-01-22 | -2/+8 |
| |