新建组织允许游客下载选项功能修复

This commit is contained in:
ouyangxuhua 2016-01-22 18:10:32 +08:00
parent e063470a57
commit dbed8379d3
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class OrganizationsController < ApplicationController
@organization.name = params[:organization][:name]
@organization.description = params[:organization][:description]
@organization.is_public = params[:organization][:is_public]
@organization.allow_guest_download = params[:organization][:allow_guest_download] == 'on' ? 1 : 0
@organization.allow_guest_download = params[:organization][:allow_guest_download] == '1' ? 1 : 0
@organization.creator_id = User.current.id
member = OrgMember.new(:user_id => User.current.id)