make manager's news and announcement can be shown at once it be submitted.
This commit is contained in:
parent
5ac04ea07d
commit
edcef5a8f7
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue