Revert "Updated Bulletins controller with announcement approval fix"

This reverts commit a9431ad17e.
This commit is contained in:
saurabhbhatia 2013-10-01 15:03:34 +08:00
parent 9f490c87d2
commit 9a0e9ddc82
1 changed files with 4 additions and 4 deletions

View File

@ -84,11 +84,11 @@ 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?)
if(is_manager? || is_admin?)
@bulletin.is_checked = true
@bulletin.is_rejected = false
@bulletin.de_pending
#end
end
respond_to do |format|
if @bulletin.save
@ -132,11 +132,11 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
respond_to do |format|
if @bulletin.update_attributes(params[:bulletin])
#if(is_manager? || is_admin?)
if(is_manager? || is_admin?)
@bulletin.is_checked = true
@bulletin.is_rejected = false
@bulletin.de_pending!
#end
end
# if (params[:bulletin][:is_checked] == "false")
# @bulletin.is_rejected = true
# @bulletin.save!