Skip to content

Commit

Permalink
Check write permissions even in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 3, 2012
1 parent 6250079 commit 8989105
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ckanext/datastore/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def configure(self, config):
## to resource dict. Not using IAction extension as this prevents other plugins
## from having a custom resource_read.

if not config['debug'] and 'ckan.datastore_read_url':
self.ckan_url = self.config['sqlalchemy.url']
self.write_url = self.config['ckan.datastore_write_url']
self.ckan_url = self.config['sqlalchemy.url']
self.write_url = self.config['ckan.datastore_write_url']
if 'ckan.datastore_read_url':
self.read_url = self.config['ckan.datastore_read_url']

self._check_separate_db()
if not config['debug']:
self._check_separate_db()
self._check_read_permissions()

# Make sure actions are cached
Expand Down

0 comments on commit 8989105

Please sign in to comment.