| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
| |
If set to 1, this restricts all pages on the site to logged-in users.
|
|
|
|
| |
In the absence of making any changes. Fixes #1739.
|
|
|
|
|
|
|
| |
Given a set of config files of the format `conf/general-{cobrand}.yml`
this script lets you easily create and recreate a symlink at
`conf/general.yml` that points to the cobrand config of your choice. The
test suite also then uses this naming convention.
|
|
|
|
|
|
| |
Now that MapIt is https only the proxy pass URLs need to be https
otherwise we proxy back the 301 redirect and various bits of the
JavaScript fail the pre-flight CORS check.
|
|
|
|
|
| |
These two packages were previously installed as a dependency of
postgresql-server-dev-all, but are no longer on stretch.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Email::Send is long deprecated and uses submodules that no longer work
correctly (e.g. Net::SMTP::TLS breaks with recent IO::Socket::SSL). We
create an Email::Sender subclass to perform the same functionality and
this also simplifies the email code with simpler envelope handling.
Bundle Email::Sender::Transport::SMTP to include fix from
https://github.com/rjbs/Email-Sender/issues/46
|
| |
|
| |
|
|
|
|
| |
This makes it easier to perform manual testing of cobrands.
|
|
|
|
|
| |
If they are absolute already, do nothing.
Switch a couple of uses to Path::Tiny as well.
|
|
|
|
| |
Fixes #1313.
|
|
|
|
|
|
|
|
| |
This allows multiple test suites to run simultaneously (beforehand, a
second run would overwrite the same config file and lose its database
connection).
Clean up the created config file on exit.
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
| |
Tidy up use of absolute URLs when in the admin.
Have the 404 handler spot static files in admin as a fallback.
|
|
|
|
|
| |
Have a generic package install file that works on Debian wheezy and
jessie, and Ubuntu precise, trusty and xenial. Drop Debian squeeze.
|
|
|
|
|
|
|
|
| |
Move to using libsass via CSS::Sass, and stop using compass, supplying
any used mixins directly. This removes the need for any ruby/gem based
installation, and greatly increases the speed of compilation. make_css
is also enhanced, bringing in the file monitoring previously done by a
separate script and improving its dependency monitoring.
|
|
|
|
| |
Fixes #1286.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Rather than hardcoding domain names, add a SECURE_PROXY_SSL_HEADER
variable that provides a trusted HTTP header and value that can be used
to determine if we're behind a HTTPS proxy.
|
|
|
|
| |
Remove the old CrossSell code. Fixes #972.
|
|
|
|
|
|
| |
Instead, add it if not present at the negotiation stage. Even if not
negotiated, we currently need it to be present for the in_gb_locale()
calls to work.
|
|
|
|
| |
This will be used by the installation script. Fixes #995.
|
|
|
|
|
| |
Call the necessary boilerplate in each script so you can call them
directly. Remove boilerplate from files that don't need it.
|
|
|
|
|
| |
This means that e.g. SMTP authentication is used when set up by all
emails, not just non-cron ones. Fixes #988.
|
|
|
|
| |
Fixes #786.
|
| |
|
|
|
|
|
| |
After the changes in b3c664b, these two lines need to be called with the
cron-wrapper.
|
|
|
|
|
|
| |
Try and save other people the potential pain of installing SOAP::Lite;
only UK FixMyStreet and Zurich geocoder use it, so set it as an optional
feature in the cpanfile instead.
|
|
|
|
|
|
|
|
| |
Switching to bundler saves confusion about gem paths when running
sass/compass to compile the CSS.
Trusty can use precisely the same packages as precise, with a few tweaks
to generalise the contents.
|
|
|
|
|
|
|
| |
This makes it easier to set up, as you can do:
$ git clone --recursive https://github.com/mysociety/fixmystreet
$ cd fixmystreet
$ vagrant up --no-color
|
|
|
|
|
|
| |
Fixes #406. Include Perl modules necessary for Email::Send::SMTP to
handle TLS/SSL, and upgrade Dir::Self due to
https://rt.cpan.org/Public/Bug/Display.html?id=88393
|
|
|
|
| |
Make mySociety-internal file separate to keep its dual use.
|
| |
|
| |
|
|
|
|
|
|
| |
Otherwise, when MapIt Global is updated, the 'point' lookup, as it only
returns the current generation by default, might no longer return the
areas present in the whitelist.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This is required after changes in
59eb44959e9cb8ccd21e9be813e4d1c8baaa1dcc for mySociety internal
deployment toolchain.
|
|
|
|
| |
(for mysoc internal processing of .ugly file)
|
|
|
|
|
| |
This is a mySociety internal deployment detail, and should be handled
elsewhere.
|
|
|
|
|
|
|
|
|
| |
If the ALLOWED_COBRANDS configuration variable only contains one entry
(and also work if it's a string rather than a list), always use that
cobrand, no matter what the hostname is.
The example Vagrantfile no longer needs the configuration changes at
all.
|
| |
|
|
|
|
|
| |
Based on previous work on vagrant branches, adjusted to use the new
--dev argument of the install script.
|