only show restore button if can_edit
This commit is contained in:
parent
0b7f4d2a13
commit
b85ecae12f
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ def group_changes(changeset, can_edit=False, show_history=False):
|
|||
change_data.update({
|
||||
'created': _('created at %(datetime)s') % {'datetime': date_format(change.created, 'DATETIME_FORMAT')},
|
||||
})
|
||||
if not show_history or change.action == 'delete':
|
||||
if not show_history or change.action == 'delete' and can_edit:
|
||||
change_data.update({
|
||||
'can_restore': change.can_restore,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue