aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/SeeSomething.pm
Commit message (Collapse)AuthorAgeLines
* [SeeSomething] Remove cobrand.Matthew Somerville2017-03-31-135/+0
|
* Use normal user authentication to control access to /adminMatthew Somerville2016-07-19-0/+5
| | | | | | | | | - 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
* Fix cobrand restriction of My/Nearby.Matthew Somerville2015-12-15-5/+0
| | | | | | | | | | | | 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.
* Simplify/consolidate body restriction db code.Matthew Somerville2015-08-19-7/+2
| | | | | | | Make dashboard work properly in two-tier councils, showing reports sent to both. Create an index on the array of the bodies_str column to speed up performance, and use that throughout the code replacing all LIKE scans. This also enables a simplifying tidy of the restriction code.
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-10/+10
| | | | | | | Use a central get_param and get_param_list functions dependent on whether we're after a scalar or a list (almost always a scalar). This prevents any possibility of confusion where param() could return a list, or params->{} an arrayref.
* Move site_title function to site-name web templateMatthew Somerville2015-01-19-2/+0
| | | | | | | This matches the email template behaviour, and makes it much easier to override without requiring a cobrand package file. Fixes #979.
* By default, use area-based alerts.Matthew Somerville2014-12-12-0/+1
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Replace from_council with from_body in SeeSomething cobrandSteven Day2014-07-31-5/+6
| | | | | | | | | | | | | | | | | | | | | | 'from_council' was renamed to 'from_body' and turned into a relationship in b2aa34b Feb 2013, and the seesomething code was missed. Though the FMS::DB::Result::User object would (correctly) throw an error if an invalid method is called, *Catalyst* idea of a user object wraps this in a Catalyst::Authentication::Store::DBIx::Class which uses AUTOLOAD to delegate methods and swallows the error. e.g. this code always returns false, hence the code path is never run. (I think this is a bug and have opened: https://rt.cpan.org/Ticket/Display.html?id=97640 ) Added test case and (hopefully) corrected template, will need a check against site running copy with recent data to check that nothing looks squiffy. We also had to change the %council_details stash, which was based on the old code, not sure if suggested fix matches original intent, but looks plausible. (As discussed with @dracos @stevenday this is slightly repeated, and should arguably use ->{bodies} but that's a possible future FIXME)
* Tidy up cobrand template inheritance.Matthew Somerville2014-07-08-8/+0
| | | | | Most cobrands can just inherit from the Default function, with only those needing an exception specified.
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
* better name and use DO_NOT_REPLY_EMAIL conf option for anonymous accountStruan Donald2013-01-08-1/+1
|
* remove id and details from reportingStruan Donald2012-12-21-1/+1
|
* show report area on reporting screenStruan Donald2012-12-21-1/+10
|
* remember search parameter and set values of selects accordinglyStruan Donald2012-12-21-0/+3
|
* add filter via device typeStruan Donald2012-12-21-0/+4
|
* list device type on see something stats pageStruan Donald2012-12-21-1/+1
|
* add pagination to report listStruan Donald2012-12-21-2/+9
|
* get $c from $self rather than having to pass it inStruan Donald2012-12-21-1/+2
|
* basic initial stats page for see somethingStruan Donald2012-12-20-0/+40
|
* move site title into cobrand class so we can override it easilyStruan Donald2012-12-20-0/+1
|
* sightly more helpful not covered textStruan Donald2012-12-20-1/+1
|
* choose better example placesStruan Donald2012-12-18-1/+1
|
* add cobrand module and templates for see something say somethingStruan Donald2012-12-07-0/+83