[ckan-discuss] Some problems installing ckan
rufus.pollock at okfn.org
Mon Feb 20 16:41:55 GMT 2012
On 19 February 2012 13:42, Ruben Martin <ruben.martin at fundacionctic.org> wrote:
> Hello from CTIC, Spain
> We are assessing now the use of ckan for a spanish council administration,
> our first production deployment. We have two questions, maybe you can help
Great to hear!
> us here because we cant solve them through the documentation.
> - Is there an easy way of preventing non logged users from registering. CKAN
> would operate in ‘publisher mode’, but they would like admin to be the only
> role allowed to make new users/registrations (via web). The register link
> can be hidden changing the template, but not the register page itself.
Yes, there is an easy way to hide this (which should also hide
register link ...). Just do:
paster --plugin=ckan roles -c my.ini deny reader create-user
paster --plugin=ckan roles -c my.ini deny anon_editor create-user
To explain: there exists a create-user action which allows creation of
users. Anonymous users are called 'visitor' and roles assigned can be
seen by doing:
paster --plugin=ckan rights visitor
We're interested in role on the System rather than individual objects
and at least on my system visitor is assigned anon_editor role. Thus
removing the create-user action from the anon_editor role will do what
you want -- deny non-logged in the users the ability to sign up.
> - We have a problem with the uploading of files. It seems the extension is
> functioning correctly but when we select a file a click on "Add" button, the
> just keeps spinning with no result. File name does not have any spaces. May
> some we lack some configuration:
Are you logged in? There is a known UX bug whereby non-logged in users
hang for upload because they are not allowed (but this auth failure
does not show up). See <http://trac.ckan.org/ticket/1553>. In general
this shouldn't be an issue because most sites do not allow editing by
> # Add any CKAN plugins here. Note: This line is required to be here for
> # packaging, even if it is empty.
> ckan.plugins = storage
> ## OFS configuration
> ckanext.storage.bucket = ckan
> ofs.impl = pairtree
> ofs.storage_dir = /home/ruben/ckan/storage
Which version of CKAN are you running?
More information about the ckan-discuss