make manager's news and announcement can be shown at once it be submitted.
This commit is contained in:
parent
5ac04ea07d
commit
edcef5a8f7
|
@ -138,7 +138,9 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
|
||||||
@bulletin.create_user_id = current_user.id
|
@bulletin.create_user_id = current_user.id
|
||||||
@bulletin.update_user_id = current_user.id
|
@bulletin.update_user_id = current_user.id
|
||||||
if(is_manager? || is_admin?)
|
if(is_manager? || is_admin?)
|
||||||
@bulletin.de_pending
|
@bulletin.is_checked = true
|
||||||
|
@bulletin.is_rejected = false
|
||||||
|
@bulletin.de_pending
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
|
@ -160,7 +160,9 @@ class Panel::News::BackEnd::NewsBulletinsController < OrbitBackendController
|
||||||
@news_bulletin.update_user_id = current_user.id
|
@news_bulletin.update_user_id = current_user.id
|
||||||
|
|
||||||
if(is_manager? || is_admin?)
|
if(is_manager? || is_admin?)
|
||||||
@news_bulletin.de_pending
|
@news_bulletin.is_checked = true
|
||||||
|
@news_bulletin.is_rejected = false
|
||||||
|
@news_bulletin.de_pending
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
Reference in New Issue