Fix bug that was never displaying preview

This commit is contained in:
Christophe Vilayphiou 2012-05-07 17:29:56 +08:00
parent 469f5c8267
commit ca88d0e01b
1 changed files with 1 additions and 1 deletions

View File

@ -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?)
by_bulletin and by_user
end