diff --git a/ckanext/datastore/plugin.py b/ckanext/datastore/plugin.py index ce78381367f..6ce0785d5ca 100644 --- a/ckanext/datastore/plugin.py +++ b/ckanext/datastore/plugin.py @@ -37,7 +37,7 @@ def configure(self, config): # Check whether we are running one of the paster commands which means # that we should ignore the following tests. import sys - if sys.argv[0].split('/')[-1] == 'paster': + if sys.argv[0].split('/')[-1] == 'paster' and sys.argv[1] == "datastore": log.warn("Omitting permission checks because you are " "running paster commands.") return