From c2c64f7d44075ef304b22ad10f12d6ef48fde2af Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 21 Feb 2013 18:51:21 +0100 Subject: [PATCH] Add note about the new CONSTANCE_SUPERUSER_ONLY setting. --- README.rst | 6 ++++++ constance/settings.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 7c3780b..433d888 100644 --- a/README.rst +++ b/README.rst @@ -181,6 +181,12 @@ Editing Fire up your ``admin`` and you should see a new app called ``Constance`` with ``MY_SETTINGS_KEY`` in the ``Config`` pseudo model. +By default changing the settings via the admin is only allowed for super users. +But in case you want to use the admin's ability to implement custom +authorization checks, feel free to set the ``CONSTANCE_SUPERUSER_ONLY`` setting +to ``False`` and give the users or user groups access to the +``constance.change_config`` permission. + Screenshots ----------- diff --git a/constance/settings.py b/constance/settings.py index 86a6354..5062199 100644 --- a/constance/settings.py +++ b/constance/settings.py @@ -21,4 +21,4 @@ REDIS_CONNECTION = getattr(settings, 'CONSTANCE_REDIS_CONNECTION', DATABASE_CACHE_BACKEND = getattr(settings, 'CONSTANCE_DATABASE_CACHE_BACKEND', None) -SUPERUSER_ONLY = getattr(settings, 'CONSTANCE_ACCESS_SUPERUSER_ONLY', True) +SUPERUSER_ONLY = getattr(settings, 'CONSTANCE_SUPERUSER_ONLY', True)