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:
		
							parent
							
								
									d8ee09916a
								
							
						
					
					
						commit
						a79c89b470
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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)) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar