starting ad_banner auth

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-05-15 09:57:05 +08:00
1 parent 2cd67356a5
commit 0a9f0bcc45
5 files changed
+17 -3

No files matched your search

@@ -2,7 +2,7 @@ module Panel::Announcement::BackEnd::BulletinsHelper
def show_approval_link(bulletin)
by_bulletin = (!bulletin.is_expired? and !bulletin.is_checked?)
by_user = (bulletin.bulletin_category.authed_users('fact_check').include?(current_user) or is_manager?)
by_user = (bulletin.bulletin_category.authed_users('fact_check').include?(current_user) or is_manager? or is_admin?)
by_bulletin and by_user
end