app/controllers/knitkit/erp_app/desktop/website_controller.rb in knitkit-2.0.5 vs app/controllers/knitkit/erp_app/desktop/website_controller.rb in knitkit-2.0.6

- old
+ new

@@ -86,13 +86,10 @@ result = {} website = Website.new website.subtitle = params[:subtitle] website.title = params[:title] website.name = params[:name] - website.email = params[:email] - website.auto_activate_publication = params[:auto_activate_publication] == 'yes' - website.email_inquiries = params[:email_inquiries] == 'yes' # create homepage website_section = WebsiteSection.new website_section.title = "Home" website_section.in_menu = true @@ -127,15 +124,12 @@ def update model = DesktopApplication.find_by_internal_identifier('knitkit') begin current_user.with_capability(model, 'edit', 'Website') do - @website.email = params[:email] @website.name = params[:name] @website.title = params[:title] @website.subtitle = params[:subtitle] - @website.auto_activate_publication = params[:auto_activate_publication] == 'yes' - @website.email_inquiries = params[:email_inquiries] == 'yes' render :json => @website.save ? {:success => true} : {:success => false} end rescue ErpTechSvcs::Utils::CompassAccessNegotiator::Errors::UserDoesNotHaveCapability=>ex render :json => {:success => false, :message => ex.message}