From 9a0e9ddc821aa9a925cb5b1e7cfc010897481243 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Tue, 1 Oct 2013 15:03:34 +0800 Subject: [PATCH] Revert "Updated Bulletins controller with announcement approval fix" This reverts commit a9431ad17e290fc70a2e18e83fd53e79cc0051ef. --- .../panel/announcement/back_end/bulletins_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb index 2fdc3ece..7a90af22 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb @@ -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!