Fix permission bug when adding row in mobile receiving
This commit is contained in:
		
							parent
							
								
									beadc08002
								
							
						
					
					
						commit
						024f09dbd4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -277,7 +277,7 @@ class ReceivingBatchView(PurchasingBatchView):
 | 
			
		|||
            'form': form,
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if self.request.has_perm('{}.edit'.format(self.get_row_permission_prefix())):
 | 
			
		||||
        if self.request.has_perm('{}.create_row'.format(self.get_permission_prefix())):
 | 
			
		||||
            update_form = forms.SimpleForm(self.request, schema=ReceivingForm)
 | 
			
		||||
            if update_form.validate():
 | 
			
		||||
                row = update_form.data['row']
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue