fix sub manager preview

This commit is contained in:
nccu 2015-01-13 09:17:53 +08:00
parent 710366377c
commit 6b50167861
1 changed files with 1 additions and 1 deletions

View File

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