fix news preview

This commit is contained in:
nccu 2015-01-13 09:19:12 +08:00
parent b303e8256a
commit 6ea576e293
1 changed files with 1 additions and 1 deletions

View File

@ -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