Alaveteli Professional
A toolset for professional users of FOI
Everything journalists, researchers and campaigners need to conduct
investigations.
Translations
Alaveteli Pro’s translations must be translated through Transifex. The Pro-specific translations are presented as an independent resource to translate.
Enabling Alaveteli Pro also enables a new help page that you’ll need to translate in the usual way.
Configuration settings
The following are all the configuration settings that you can change in
config/general.yml
. When you edit this file, remember it must be in the YAML syntax. It’s not complicated but —
especially if you’re editing a list — be careful to get the indentation
correct. If in doubt, look at the examples already in the file, and don’t use
tabs.
ENABLE_ALAVETELI_PRO
PRO_SITE_NAME
PRO_CONTACT_NAME
PRO_CONTACT_EMAIL
PRO_BATCH_AUTHORITY_LIMIT
FORWARD_PRO_NONBOUNCE_RESPONSES_TO
ENABLE_PRO_SELF_SERVE
Alaveteli Pro adds digest notifications for Pro users to help them manage their FOI requests. You must enable the Notifications Daemon when enabling Alaveteli Pro.
Signup options
There are three possibilities for allowing users to access a Pro account.
Option | Description | Configuration |
---|---|---|
Invite-only | Admins approve or deny access requests. |
|
Self-service | Users can add Pro to their account themselves with no intervention. |
|
Paid Subscriptions | Users are charged a recurring subscription for access to Pro. See the pricing documentation for more details. |
|
Assigning your first Pro admin
Alaveteli Pro introduces a new user role of pro_admin
. After enabling
Alaveteli Pro, you’ll need to assign the first pro_admin
through the Rails
console.
$ cd /var/www/www.example.com/alaveteli
$ bundle exec rails console
Within the Rails console, find the user you want to upgrade and add the
pro_admin
role.
user = User.find_by(email: 'admin@example.com')
user.add_role(:pro_admin)
This user will now be able to manage private requests and assign pro_admin
to
other users through the admin web interface. Note that pro_admin
users should
also have the admin
role.
All the Alaveteli Professional settings
-
ENABLE_ALAVETELI_PRO
-
Enable Alaveteli Professional.
If
ENABLE_ALAVETELI_PRO
is set to true, Alaveteli will include extra functionality and account levels for professional FOI users, e.g. journalists. Professional users have access to a new dashboard, a more streamlined request process, and crucially, the ability to embargo their requests so that they remain private.Enabling this is a large change, and this is still in Alpha development, so you may want to contact the Alaveteli team before doing so.
Example:
ENABLE_ALAVETELI_PRO: true
-
PRO_SITE_NAME
-
Site name for Alaveteli Professional.
The name to use when referring to the Alaveteli Professional parts of an Alaveteli site. For example, in the UK our Alaveteli instance is called "WhatDoTheyKnow" but we refer to the pro parts of the site as "WhatDoTheyKnow Pro".
If you don't want a different name for the pro pages, make this the same as SITE_NAME.
Example:
PRO_SITE_NAME: 'Alaveteli Professional'
-
PRO_CONTACT_NAME
&PRO_CONTACT_EMAIL
-
Contact name and email for Alaveteli Professional.
If you want all support mail to go to the same address, make these the same as CONTACT_NAME & CONTACT_EMAIL.
Examples:
PRO_CONTACT_NAME: 'Alaveteli Professional Team'
PRO_CONTACT_EMAIL: 'pro-team@example.com'
-
PRO_BATCH_AUTHORITY_LIMIT
-
The total number of authorities that can be added to a Alaveteli
Professional batch request.
Example:
PRO_BATCH_AUTHORITY_LIMIT: 500
-
FORWARD_PRO_NONBOUNCE_RESPONSES_TO
-
The email address to which non-bounce responses to emails sent out to
Alaveteli Professional users by Alaveteli should be forwarded.
Example:
FORWARD_PRO_NONBOUNCE_RESPONSES_TO: pro-support@example.com
-
ENABLE_PRO_SELF_SERVE
-
This option is only used when
ENABLE_PRO_PRICING
is set tofalse
. IfENABLE_PRO_SELF_SERVE
is set totrue
, Alaveteli will let users upgrade their accounts to Pro without needing to enter payment details. IfENABLE_PRO_SELF_SERVE
is set tofalse
, admins will receive an account request email and has to assign the role in the Alaveteli admin interface.Example:
ENABLE_PRO_SELF_SERVE: true