Browse Source

fixed dataset仅本地版开放

pull/348/head^2^2
xxq250 1 year ago
parent
commit
fa2448b94d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/project_unit.rb

+ 1
- 1
app/models/project_unit.rb View File

@@ -23,7 +23,7 @@ class ProjectUnit < ApplicationRecord

def self.init_types(project_id, project_type='common')
unit_types = project_type == 'sync_mirror' ? ProjectUnit::unit_types.except("pulls") : ProjectUnit::unit_types
# unit_types = unit_types.except("dataset")
unit_types = unit_types.except("dataset") unless EduSetting.get("is_local") == "true"
unit_types.each do |_, v|
self.create!(project_id: project_id, unit_type: v)
end


Loading…
Cancel
Save