From 6ea576e2934d97bdaec6fd38f74904482eed6add Mon Sep 17 00:00:00 2001 From: nccu Date: Tue, 13 Jan 2015 09:19:12 +0800 Subject: [PATCH] fix news preview --- app/controllers/news_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index 16e66e3..fe7e084 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -166,7 +166,7 @@ class NewsController < ApplicationController access_level = OrbitHelper.user_access_level? page = Page.where(:module => "news").first rescue nil - if !news.approved && (access_level != "manager" && access_level != "admin") + if !news.approved && (access_level != "manager" && access_level != "admin" && access_level != "sub_manager") return {} end ma = ModuleApp.find_by_key("news") rescue nil