diff options
| author | 0livd <0livd@users.noreply.github.com> | 2017-05-18 10:48:09 +0100 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2017-05-18 11:48:09 +0200 |
| commit | ea8eda35a7bd831964c38b38cc9a5b19bcb44d6a (patch) | |
| tree | 5a5efbe2523a1f8f84aec65c298a9b4fd6a9421e /budget/translations | |
| parent | 091553be566d97816ed898207b56d2694eb2efdd (diff) | |
| download | ihatemoney-mirror-ea8eda35a7bd831964c38b38cc9a5b19bcb44d6a.zip ihatemoney-mirror-ea8eda35a7bd831964c38b38cc9a5b19bcb44d6a.tar.gz ihatemoney-mirror-ea8eda35a7bd831964c38b38cc9a5b19bcb44d6a.tar.bz2 | |
Public project creation and admin permissions (#210)
* Add a @requires_admin decorator
It can be used to protect specific endpoints with ADMIN_PASSWORD
(a password that is stored unencrypted in the settings)
The decorator has no effect if ADMIN_PASSWORD is an empty string (default value)
* Require admin permissions to access create project endpoint
When ADMIN_PASSWORD is not empty, project creation form on the
home page will be replaced by a link to the create project endpoint
so one is able to enter the admin password before filling the form
Diffstat (limited to 'budget/translations')
| -rw-r--r-- | budget/translations/fr/LC_MESSAGES/messages.mo | bin | 8040 -> 8226 bytes | |||
| -rw-r--r-- | budget/translations/fr/LC_MESSAGES/messages.po | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/budget/translations/fr/LC_MESSAGES/messages.mo b/budget/translations/fr/LC_MESSAGES/messages.mo Binary files differindex 1794c62..c824b18 100644 --- a/budget/translations/fr/LC_MESSAGES/messages.mo +++ b/budget/translations/fr/LC_MESSAGES/messages.mo diff --git a/budget/translations/fr/LC_MESSAGES/messages.po b/budget/translations/fr/LC_MESSAGES/messages.po index 8bf347a..609846f 100644 --- a/budget/translations/fr/LC_MESSAGES/messages.po +++ b/budget/translations/fr/LC_MESSAGES/messages.po @@ -41,6 +41,10 @@ msgstr "Email" msgid "Project identifier" msgstr "Identifiant du projet" +#: forms.py:87 +msgid "Admin password" +msgstr "Mot de passe administrateur" + #: forms.py:87 templates/send_invites.html:5 msgid "Create the project" msgstr "Créer le projet" @@ -159,6 +163,10 @@ msgid "Export file format" msgstr "Format du fichier d'export" #: web.py:95 +msgid "This admin password is not the right one" +msgstr "Le mot de passe administrateur que vous avez entré n'est pas correct" + +#: web.py:95 msgid "This private code is not the right one" msgstr "Le code que vous avez entré n'est pas correct" |
