From 6b50167861025b75cc2b007a4220427b5628c4c9 Mon Sep 17 00:00:00 2001 From: nccu Date: Tue, 13 Jan 2015 09:17:53 +0800 Subject: [PATCH] fix sub manager preview --- app/controllers/announcements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 769674b..df75c45 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -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