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.
This commit is contained in:
Lance Edgar 2015-04-10 22:04:37 -05:00
parent d8ee09916a
commit a79c89b470

View file

@ -1030,7 +1030,7 @@ def defaults(config, batch_grid, batch_crud, row_grid, row_crud, url_prefix,
# Refresh batch row data # Refresh batch row data
config.add_route('{0}.refresh'.format(route_prefix), '{0}{{uuid}}/refresh'.format(url_prefix)) 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), 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 # Execute batch
config.add_route('{0}.execute'.format(route_prefix), '{0}{{uuid}}/execute'.format(url_prefix)) config.add_route('{0}.execute'.format(route_prefix), '{0}{{uuid}}/execute'.format(url_prefix))