Skip to content

Commit

Permalink
Fix error when you can undo another users activity
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Jul 29, 2017
1 parent bb19792 commit 9e492ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/dashboard/_history.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
= "#{activity.user.name} has done "
em = "\"#{activity.name}\" "
= activity_time_tag(activity.created_at)
.activity-undo
= button_to 'Undo', activity_path(id: activity.id), method: :delete, class: 'btn btn-warning btn-sm form-inline'
- if activity.user == current_user
.activity-undo
= button_to 'Undo', activity_path(id: activity.id), method: :delete, class: 'btn btn-warning btn-sm form-inline'

0 comments on commit 9e492ed

Please sign in to comment.