fix sub manager preview
This commit is contained in:
parent
710366377c
commit
6b50167861
|
@ -168,7 +168,7 @@ class AnnouncementsController < ApplicationController
|
|||
access_level = OrbitHelper.user_access_level?
|
||||
page = Page.where(:module => "announcement").first rescue nil
|
||||
|
||||
if !announcement.approved && (access_level != "manager" && access_level != "admin")
|
||||
if !announcement.approved && (access_level != "manager" && access_level != "admin" && access_level != "sub_manager")
|
||||
return {}
|
||||
end
|
||||
page = Page.where(:module => "announcement").first rescue nil
|
||||
|
|
Reference in New Issue