app/controllers/phcpress/news/posts_controller.rb in phcpress-3.8.1 vs app/controllers/phcpress/news/posts_controller.rb in phcpress-3.8.5

- old
+ new

@@ -3,11 +3,10 @@ module Phcpress class News::PostsController < ApplicationController # Filters & Security layout 'layouts/phcpress/newspost/news_layout' - before_action :authenticate_user! - before_action :current_user + before_action :authenticate_user!, if: -> { defined?(Devise) } before_action :set_news_post, only: [:edit, :update, :destroy] # News Post Index def index @news_posts = News::Post.all