From 16eeb501ca482c53fdcdce3a922af7cbb091da8a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 2 Dec 2017 18:10:33 -0600 Subject: [PATCH] Fix permission bug for mobile inventory batch --- tailbone/views/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/inventory.py b/tailbone/views/inventory.py index 8d0ebc05..80bb5578 100644 --- a/tailbone/views/inventory.py +++ b/tailbone/views/inventory.py @@ -263,7 +263,7 @@ class InventoryBatchView(BatchMasterView): '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) if update_form.validate(): row = update_form.data['row']