修改了一处bug
This commit is contained in:
parent
6700e0e105
commit
8bc573cb3c
|
@ -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)
|
||||||
|
|
|
@ -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 |
Loading…
Reference in New Issue