This commit is contained in:
Toks
2014-05-25 14:50:07 -04:00
parent 6630bd9a41
commit 5f12a5e555
7 changed files with 11 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ class PostVersionsController < ApplicationController
def undo
@post_version = PostVersion.find(params[:id])
if Danbooru.config.can_user_see_post?(CurrentUser.user, @post_version.post)
if @post_version.post.visible?
@post_version.undo!
end