diff --git a/ckan/authz.py b/ckan/authz.py index 281f530cdf9..dba11a44f07 100644 --- a/ckan/authz.py +++ b/ckan/authz.py @@ -203,10 +203,11 @@ def is_authorized(action, context, data_dict=None): # access straight away if not getattr(auth_function, 'auth_allow_anonymous_access', False) \ and not context.get('auth_user_obj'): - return {'success': False, - 'msg': '{0} requires an authenticated user' - .format(auth_function) - } + return { + 'success': False, + 'msg': 'Action {0} requires an authenticated user'.format( + action) + } return auth_function(context, data_dict) else: diff --git a/doc/maintaining/installing/install-from-docker-compose.rst b/doc/maintaining/installing/install-from-docker-compose.rst index fe7b6790953..cffe1e77b82 100644 --- a/doc/maintaining/installing/install-from-docker-compose.rst +++ b/doc/maintaining/installing/install-from-docker-compose.rst @@ -173,11 +173,7 @@ a. Create and configure datastore database With running CKAN containers, execute the built-in setup scripts against the ``db`` container:: -<<<<<<< HEAD - docker exec -it db psql -U ckan -f 00_create_datastore.sql -======= docker exec -it db sh /docker-entrypoint-initdb.d/00_create_datastore.sh ->>>>>>> 46eaff845... Obvious doc fix related with #3991 docker exec ckan /usr/local/bin/ckan-paster --plugin=ckan datastore set-permissions -c /etc/ckan/production.ini | docker exec -i db psql -U ckan The first script will create the datastore database and the datastore readonly user in the ``db``