From 024f09dbd4a6b726f6de1e9be6e2bb73414acb76 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 29 Jan 2018 17:56:36 -0600 Subject: [PATCH] Fix permission bug when adding row in mobile receiving --- tailbone/views/purchasing/receiving.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index 895f90cd..87487cd6 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -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']