Fix some bugs etc. with batch views and templates
This commit is contained in:
parent
f97b26506f
commit
37be76cc84
3 changed files with 16 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue