| Commit message (Collapse) | Author | Age | Lines |
|\ |
|
| |
| |
| |
| | |
short_or_long_name of a public body
|
| |
| |
| |
| |
| | |
Add the facility to filter the public body feed by event type
using a query string parameter, e.g. event_type=sent.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously the "log in as" function after 3b6e5a692b852a88f55b21a7210f60a6f7cfc24b
would attempt to log the admin user out before issuing the redirect. Unfortunately
this approach does not work on WhatDoTheyKnow, where the admin pages are served via
a different domain (secure.mysociety.org) and so do not share session information with
the rest of the site.
This commit changes it to mark the PostRedirect with circumstance == "login_as",
which signals the user controller to log out the previous user even if they are
an admin. In other words, the user is logged out on the main site rather than the
admin site, skirting this problem.
Closes #450.
|
|/ |
|
|
|
|
| |
Closes #415.
|
|
|
|
|
|
| |
Don't change logged-in user from an admin when visiting a auto-login URL.
Closes #306.
|
|
|
|
|
| |
Include information about what the per-day limit is, and when the
user can next make a request. Fixes #412.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
So it turns out that issue #408 is a real and potentially nasty
bug. The code was assuming that attachments are returned in the
order they were created, which is a) not guaranteed to be the case,
and b) sometimes actually not the case, hence the occasional test
failures.
This trivial patch corrects the issue by sorting attachments by
id. The effect of this is to return them in the order they were
added to the database, since all were added using the same sequence
in a single database session.
Fixes #408.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
locale/app.pot
|
| |
| |
| |
| |
| |
| |
| |
| | |
When a user account has been suspended, we write (Banned) after their
user name. But sometimes we need to suspend accounts temporarily,
such as pending the result of a discussion, and it is misleading
to write (Banned) in such cases; so let’s change it to (Account
suspended) instead.
|
|/ |
|
|
|
|
|
|
| |
Add the capability to specify a limit to the number of requests a
user can make per day, which can be turned off for specific users
in the admin interface.
|
|
|
|
|
|
| |
Better error reporting when an incoming message has no raw_email.
This is useful if you make a mistake when creating new test data,
to pick an example application completely at random (not).
|
|
|
|
|
| |
If $RAILS_ENV is unset, raise an exception rather than just blithely
creating a directory called cache/attachments_.
|
|
|
|
|
| |
Remove the references to raw_emails.data_text and data_binary,
which have not existed since the summer.
|
|\ |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
The behaviour of elinks is locale-dependent. This patch forces LANG=C
which makes the behaviour consistent across platforms.
|
| |
|
|
|
|
|
| |
because for some reason iconv is assuming big-endian on my MacBook Pro
(OS X 10.7.2) unless told explicitly, and this causes test failure.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The trouble with `which command` is twofold:
- It spawns a whole shell just to find out the path to a binary, every time;
- The results are environment-dependent, since they depend on $PATH. It would
be better to specify the search path in the configuration file where everything
else is specified rather than in the environment.
This commit replaces it with the new mechanism from AlaveteliExternalCommand.
|
| |
|
|
|
|
|
|
| |
So do not rely on a hard-coded path. Also change the order of arguments
and use /dev/stdout rather than -, so it works with the Mac/BSD version
of uudecode as well as the Linux version.
|
| |
|
|\
| |
| |
| | |
example at issue #327, at least in part.
|
| |
| |
| |
| | |
every time
|
| |
| |
| |
| | |
getting the body a few times before failing. May be related to issue #333 and #339
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This silences the warnings:
warning: already initialized constant MSET_MAX_TRIES
warning: already initialized constant MSET_MAX_DELAY
coming from vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
and also resolves an XXXX-marked issue.
|
|\| |
|
| |
| |
| |
| | |
incoming message's attachments. May fix #339.
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| | | |
|
| |/ |
|
| | |
|
|/
|
|
| |
Replace a slow query with a much faster equivalent one.
|
| |
|
| |
|
|
|
|
| |
and HTML emails with encoding in a meta-tag). Fixes #281
|
|
|
|
| |
79fd89c5aec01ea035d57c5a71213202dafc778c
|
|
|
|
| |
feature in CHANGES.md
|