app/controllers/phcpress/news/posts_controller.rb in phcpress-2.8.9 vs app/controllers/phcpress/news/posts_controller.rb in phcpress-2.8.10
- old
+ new
@@ -64,7 +64,12 @@
# Whitelist on what can be posted
def news_post_params
params.require(:news_post).permit(:newspsttitle, :newspsttext, :newspstexcerpts, :pststatus, :pstimage)
end
+ # Current User
+ def current_user?(user)
+ user == current_user
+ end
+
end
end