aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/User.pm
Commit message (Collapse)AuthorAgeLines
* Merge branch 'listshort'Matthew Somerville2017-01-12-0/+2
|\
| * Add shortlist buttons to report lists.Matthew Somerville2017-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 Somerville2017-01-10-6/+9
|/
* Only load user body permissions once per request.Matthew Somerville2016-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 Somerville2016-12-13-1/+1
|
* Pre-filter map pages if user has categories assignedDave Arter2016-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 Somerville2016-10-11-5/+10
|
* Fix bug in fetching existing shortlisted report.Matthew Somerville2016-10-11-1/+1
| | | | | It would always create a new report rather than return an existing one, if present.
* Update user reputation when inspecting reportDave Arter2016-09-23-0/+8
|
* Add 'extra' field to User modelDave Arter2016-09-23-6/+14
|
* Merge remote-tracking branch ↵Matthew Somerville2016-09-20-1/+1
|\ | | | | | | 'origin/issues/forcouncils/89-tidy-report-admin-actions'
| * Organize report admin actions into single control.Zarino Zappia2016-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 directlyDave Arter2016-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_toDave Arter2016-09-20-7/+5
|/
* Add manage screen for editing priority/category.Matthew Somerville2016-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 methodDave Arter2016-09-08-0/+23
|
* Allow user to have an area assigned in adminDave Arter2016-08-22-2/+4
|
* Add user planned reports.Matthew Somerville2016-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 Zappia2016-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 /adminMatthew Somerville2016-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 Somerville2016-06-20-3/+24
|
* Warnfix if belongs_to_body called with no string.Matthew Somerville2016-05-24-2/+3
|
* Remember user's last anonymous state.Matthew Somerville2016-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 Somerville2016-01-22-2/+8
|
* Move Latin-char-specific name check to cobrand.Matthew Somerville2015-07-31-1/+1
| | | | | Also move some UK-specific code in the same function. The specific code is still tested in report_new.t.
* Report moderationHakim Cassimally2014-08-13-2/+31
| | | | | | | | | | | - redaction marked with [...] - of report and comments - stores original data - uses a single form, on the report/_main view - requires additional permissions (user_body_permissions) - Hide report functionality - Moderation notification/contact form - Moderation writes to admin_log
* Update DB/Result/* with latest DBIx::Class::Schema::LoaderChris Mytton2013-09-10-5/+5
| | | | | | | | | Version 0.07027 of DBIx::Class::Schema::Loader introduced some changes to the way it generates schemas. > PostgreSQL WARNING: the default for on_delete/on_update attributes for > belongs_to relationships is now 'NO ACTION' not 'CASCADE! The default > for is_deferrable is now 0 not 1.
* Make from_body a foreign key.Matthew Somerville2012-12-15-17/+16
|
* Rename a few more less important variables.Matthew Somerville2012-12-15-5/+5
|
* Rename from_council to from_body, and small related changes.Matthew Somerville2012-12-15-11/+12
|
* Rename 'open311conf' database table to 'body'.Matthew Somerville2012-12-15-8/+8
|
* Enable council user to remove report from site using front end button.Matthew Somerville2012-05-02-1/+1
|
* store title in users table so we can persist it for bromleyStruan Donald2012-05-01-3/+11
|
* add first name and last name boxes for bromleyStruan Donald2012-03-30-0/+18
|
* few more static statesStruan Donald2011-08-18-1/+1
|
* Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet ↵Struan Donald2011-08-17-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | into new_statuses Conflicts: db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/DB/Result/User.pm t/app/controller/admin.t templates/web/default/admin/update_edit.html web/css/core.css
| * add flagged flags to problems and usersStruan Donald2011-08-09-0/+2
| |
* | use the correct council separator characterStruan Donald2011-07-27-1/+1
| |
* | allow council user to update state on problem sent to multiple councilsStruan Donald2011-07-27-0/+19
| |
* | Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet ↵Struan Donald2011-06-28-8/+0
|\| | | | | | | | | | | | | | | into new_statuses Conflicts: perllib/FixMyStreet/App/Controller/Report/Update.pm templates/web/default/report/display.html
| * Allow people to sign in (or not) as they make an update.Matthew Somerville2011-06-28-8/+0
| |
* | Display council name next to updates from council usersStruan Donald2011-06-27-0/+17
| |
* | change to use from_council in users table and store the council id inStruan Donald2011-06-27-4/+4
| | | | | | | | | | there so we can check that the problem is for the council the user is from
* | remove merge cruftStruan Donald2011-06-27-1/+0
| |
* | Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet ↵Struan Donald2011-06-27-1/+11
|\| | | | | | | | | | | | | | | | | into new_statuses Conflicts: perllib/FixMyStreet/DB/Result/Comment.pm perllib/FixMyStreet/DB/Result/User.pm web/css/core.css
| * Use bcrypt.Matthew Somerville2011-06-24-3/+12
| |
* | Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet ↵Struan Donald2011-06-23-1/+17
|\| | | | | | | | | | | | | into new_statuses Conflicts: templates/web/default/report/display.html
| * Remove unneeded defaults checking and simplify.Matthew Somerville2011-06-23-1/+1
| |
| * Use update user centrally.Matthew Somerville2011-06-23-0/+16
| |
* | add from_authority flag to users table for council employees etcStruan Donald2011-06-22-2/+4
|/