Skip to content

Commit 3bc9351

Browse files
committed
feat(misc): changelog;
- Added change log file.
1 parent 5cd9a19 commit 3bc9351

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ckan/authz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def is_authorized(action: str, context: Context,
228228
# (canada fork only): site read only mode
229229
# TODO: upstream contrib!!!
230230
if config.get('ckan.site_read_only', False):
231-
if getattr(p.toolkit.get_action(action), 'side_effect_free', False):
231+
if not getattr(p.toolkit.get_action(action), 'side_effect_free', False):
232232
return {'success': False,
233233
'msg': _('Site is in read only mode')}
234234

0 commit comments

Comments
 (0)