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,7 +138,9 @@ 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.de_pending
@bulletin.is_checked = true
@bulletin.is_rejected = false
@bulletin.de_pending
end
respond_to do |format|

View File

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