From 99d9181109238c1668ee58db5c3720d084e29d30 Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Mon, 12 Dec 2016 14:33:32 +0200 Subject: [PATCH] Updated value for `ckan.auth.user_create_groups Now documentation contains correct default value - False. Also this option mentioned in writhing extension guide --- doc/extensions/tutorial.rst | 5 +++-- doc/maintaining/configuration.rst | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/extensions/tutorial.rst b/doc/extensions/tutorial.rst index 2a5a88ce2e2..2753d28b535 100644 --- a/doc/extensions/tutorial.rst +++ b/doc/extensions/tutorial.rst @@ -257,8 +257,9 @@ dictionary: Whenever a user tries to create a new group via the web interface or the API, CKAN calls the :func:`~ckan.logic.auth.create.group_create` authorization function to decide whether to allow the action. Let's override this function -and simply prevent anyone from creating new groups. Edit your ``plugin.py`` -file so that it looks like this: +and simply prevent anyone from creating new groups(Note: this is default behavior. +In order to go further, you need to change ``ckan.auth.user_create_groups`` to `True` +in configuration file). Edit your ``plugin.py`` file so that it looks like this: .. literalinclude:: ../../ckanext/example_iauthfunctions/plugin_v2.py diff --git a/doc/maintaining/configuration.rst b/doc/maintaining/configuration.rst index e3ed4423bd7..0786397aaea 100644 --- a/doc/maintaining/configuration.rst +++ b/doc/maintaining/configuration.rst @@ -467,9 +467,9 @@ ckan.auth.user_create_groups Example:: - ckan.auth.user_create_groups = False + ckan.auth.user_create_groups = True -Default value: ``True`` +Default value: ``False`` Allow users to create groups.