From a79c89b4703e9861bbe45170fe1612db9fa2a158 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 10 Apr 2015 22:04:37 -0500 Subject: [PATCH] Change permission requirement for refreshing a batch's data. In the event of a create-only user role, refreshing sort of needs to be part of it. --- tailbone/views/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/batch.py b/tailbone/views/batch.py index b2cc91b5..eb048a48 100644 --- a/tailbone/views/batch.py +++ b/tailbone/views/batch.py @@ -1030,7 +1030,7 @@ def defaults(config, batch_grid, batch_crud, row_grid, row_crud, url_prefix, # Refresh batch row data config.add_route('{0}.refresh'.format(route_prefix), '{0}{{uuid}}/refresh'.format(url_prefix)) config.add_view(batch_crud, attr='refresh', route_name='{0}.refresh'.format(route_prefix), - permission='{0}.edit'.format(permission_prefix)) + permission='{0}.create'.format(permission_prefix)) # Execute batch config.add_route('{0}.execute'.format(route_prefix), '{0}{{uuid}}/execute'.format(url_prefix))