Browse Source

修改后端的bug

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
6deb1a9488
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/services/projects/create_service.rb

+ 5
- 1
app/services/projects/create_service.rb View File

@@ -39,7 +39,7 @@ class Projects::CreateService < ApplicationService

def repository_params
{
hidden: get_is_public,
hidden: repo_is_public,
user_id: params[:user_id],
identifier: params[:repository_name]
}
@@ -48,4 +48,8 @@ class Projects::CreateService < ApplicationService
def get_is_public
params[:private] || true
end

def repo_is_public
!get_is_public
end
end

Loading…
Cancel
Save