okfn/ckan — pull request #792 by tobes (2013-06-13 12:43:06+00:00)
Title: "Add Dataset" button shows when you can't use it

If `ckan.auth.create_unowned_dataset = False` is set in the config file and the user is not a member of any organization, the _Add Dataset_ button still shows even though you cannot add one.

This also affects sysadmins (who can add datasets to any organization, even one they're not a member of) if the site does not have any organizations.