forked from Gitlink/forgeplus
fix: license is secret delay
This commit is contained in:
parent
04f2dbee9a
commit
e7af0e2e47
|
@ -61,7 +61,7 @@ class Projects::CreateService < ApplicationService
|
|||
|
||||
def repo_is_public
|
||||
license = License.find_by_id(params[:license_id])
|
||||
if license.is_secret
|
||||
if license&.is_secret
|
||||
false
|
||||
else
|
||||
params[:private].blank? ? true : !(ActiveModel::Type::Boolean.new.cast(params[:private]).nil? ? false : ActiveModel::Type::Boolean.new.cast(params[:private]))
|
||||
|
|
Loading…
Reference in New Issue