From a9431ad17e290fc70a2e18e83fd53e79cc0051ef Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Tue, 1 Oct 2013 10:00:56 +0800 Subject: [PATCH] Updated Bulletins controller with announcement approval fix --- .../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 7a90af22f..2fdc3ece7 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!