This commit is contained in:
Toks
2013-06-21 21:55:47 -04:00
parent 0bb6385169
commit 7726e85e33
4 changed files with 16 additions and 8 deletions

View File

@@ -16,7 +16,11 @@ class PostVersionsController < ApplicationController
def undo
@post_version = PostVersion.find(params[:id])
@post_version.undo!
if Danbooru.config.can_user_see_post?(CurrentUser.user, @post_version.post)
@post_version.undo!
end
respond_with(@post_version) do |format|
format.js
end