mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 17:55:56 +08:00
[FIX]join projects add org projects and update project private bug
This commit is contained in:
@@ -76,7 +76,7 @@ class ProjectsController < ApplicationController
|
||||
default_branch: params[:default_branch]
|
||||
}
|
||||
if [true, false].include? private
|
||||
new_project_params = project_params.merge(is_public: !private)
|
||||
new_project_params = project_params.except(:private).merge(is_public: !private)
|
||||
Gitea::Repository::UpdateService.call(@owner, @project.identifier, gitea_params)
|
||||
@project.repository.update_column(:hidden, private)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user