Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a355d79 + 6c73d1c commit bd10b20Copy full SHA for bd10b20
1 file changed
ckan/logic/action/update.py
@@ -71,13 +71,13 @@ def resource_update(context, data_dict):
71
data_dict['url'] = ''
72
73
resource = model.Resource.get(id)
74
- context["resource"] = resource
75
- old_resource_format = resource.format
76
-
77
if not resource:
78
log.debug('Could not find resource %s', id)
79
raise NotFound(_('Resource was not found.'))
80
+ context["resource"] = resource
+ old_resource_format = resource.format
+
81
_check_access('resource_update', context, data_dict)
82
del context["resource"]
83
0 commit comments