Skip to content

Commit

Permalink
Updated value for `ckan.auth.user_create_groups
Browse files Browse the repository at this point in the history
Now documentation contains correct default value - False.
Also this option mentioned in writhing extension guide
  • Loading branch information
smotornyuk authored and amercader committed Feb 14, 2017
1 parent 421f036 commit 99d9181
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions doc/extensions/tutorial.rst
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions doc/maintaining/configuration.rst
Expand Up @@ -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.
Expand Down

0 comments on commit 99d9181

Please sign in to comment.