Fix some bugs etc. with batch views and templates

This commit is contained in:
Lance Edgar 2016-11-20 14:10:04 -06:00
parent f97b26506f
commit 37be76cc84
3 changed files with 16 additions and 9 deletions

View file

@ -284,7 +284,7 @@ class MasterView(View):
actions.append(grids.GridAction('edit', icon='pencil', url=self.row_edit_action_url))
# delete action
if self.rows_deletable:
if self.rows_deletable and self.request.has_perm('{}.delete_row'.format(permission_prefix)):
actions.append(grids.GridAction('delete', icon='trash', url=self.row_delete_action_url))
defaults['main_actions'] = actions