Skip to content

Commit

Permalink
Disable permission checks in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 27, 2012
1 parent 3d840fe commit 0d97d5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/datastore/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def configure(self, config):
if not self._is_read_only_database():
# Make sure that the right permissions are set
# so that no harmful queries can be made
if not config['debug']:
if not ('debug' in config and config['debug']):
self._check_separate_db()
self._check_read_permissions()
self._check_read_permissions()

self._create_alias_table()
else:
Expand Down

0 comments on commit 0d97d5e

Please sign in to comment.