新建组织允许游客下载选项功能修复
This commit is contained in:
parent
e063470a57
commit
dbed8379d3
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue