make manager's news and announcement can be shown at once it be submitted.

This commit is contained in:
Matthew K. Fu JuYuan 2012-10-01 16:11:58 +08:00
parent 5ac04ea07d
commit edcef5a8f7
2 changed files with 6 additions and 2 deletions

View File

@ -138,6 +138,8 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
@bulletin.create_user_id = current_user.id
@bulletin.update_user_id = current_user.id
if(is_manager? || is_admin?)
@bulletin.is_checked = true
@bulletin.is_rejected = false
@bulletin.de_pending
end

View File

@ -160,6 +160,8 @@ class Panel::News::BackEnd::NewsBulletinsController < OrbitBackendController
@news_bulletin.update_user_id = current_user.id
if(is_manager? || is_admin?)
@news_bulletin.is_checked = true
@news_bulletin.is_rejected = false
@news_bulletin.de_pending
end