fix news preview
This commit is contained in:
parent
b303e8256a
commit
6ea576e293
|
@ -166,7 +166,7 @@ class NewsController < ApplicationController
|
||||||
access_level = OrbitHelper.user_access_level?
|
access_level = OrbitHelper.user_access_level?
|
||||||
page = Page.where(:module => "news").first rescue nil
|
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 {}
|
return {}
|
||||||
end
|
end
|
||||||
ma = ModuleApp.find_by_key("news") rescue nil
|
ma = ModuleApp.find_by_key("news") rescue nil
|
||||||
|
|
Loading…
Reference in New Issue