diff --git a/app/views/note_versions/index.html.erb b/app/views/note_versions/index.html.erb index 8b10fdfa6..78adcd579 100644 --- a/app/views/note_versions/index.html.erb +++ b/app/views/note_versions/index.html.erb @@ -27,7 +27,11 @@ <%= link_to note_version.updater.name, user_path(note_version.updater) %> <%= note_version.updated_at.strftime("%Y-%m-%d %H:%M") %> - <%= link_to "Revert", revert_note_path(note_version.note_id, :version => note_version.id), :remote => true, :confirm => "Do you really want to revert to this version?" %> + + <% if CurrentUser.is_member? %> + <%= link_to "Revert", revert_note_path(note_version.note_id, :version_id => note_version.id), :remote => true, :method => :put, :confirm => "Do you really want to revert to this version?" %> + <% end %> + <% end %>