修改了一处bug

This commit is contained in:
tanhuazhe 2016-01-15 15:27:40 +08:00
parent 6700e0e105
commit 8bc573cb3c
3 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class ApplicationController < ActionController::Base
end end
def current_user_is_author?(article) def current_user_is_author?(article)
@current_user.id == article.user_id @current_user && @current_user.id == article.user_id
end end
def current_user_can_star?(article) def current_user_can_star?(article)

View File

@ -22,4 +22,4 @@
$(this).tab('show'); $(this).tab('show');
preview('article_comment_content', 'preview'); preview('article_comment_content', 'preview');
}); });
}); });

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB