Fix permission bug for mobile inventory batch

This commit is contained in:
Lance Edgar 2017-12-02 18:10:33 -06:00
parent 64afab821f
commit 16eeb501ca

View file

@ -263,7 +263,7 @@ class InventoryBatchView(BatchMasterView):
'form': form, 'form': form,
} }
if self.request.has_perm('{}.edit'.format(self.get_row_permission_prefix())): if self.request.has_perm('{}.edit_row'.format(self.get_permission_prefix())):
update_form = forms.SimpleForm(self.request, schema=InventoryForm) update_form = forms.SimpleForm(self.request, schema=InventoryForm)
if update_form.validate(): if update_form.validate():
row = update_form.data['row'] row = update_form.data['row']