diff options
author | yp05327 <576951401@qq.com> | 2023-03-17 22:07:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-17 21:07:23 +0800 |
commit | 8e45fcb63aeedcf89a705227fa7675698d68d43c (patch) | |
tree | 8facfd85193ff8907673e3e1d1f8e33e27a4c44e /models/project/project_test.go | |
parent | 8120c0c20c42f46d08356064c7f7fe96fafcfade (diff) | |
download | gitea-8e45fcb63aeedcf89a705227fa7675698d68d43c.tar.gz gitea-8e45fcb63aeedcf89a705227fa7675698d68d43c.zip |
Do not store user projects as organization projects (#23353)
A part of https://github.com/go-gitea/gitea/pull/22865
At first, I think we do not need 3 ProjectTypes, as we can check user
type, but it seems that it is not database friendly.
---------
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'models/project/project_test.go')
-rw-r--r-- | models/project/project_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/project/project_test.go b/models/project/project_test.go index 6caa244f54..71ceda7aa5 100644 --- a/models/project/project_test.go +++ b/models/project/project_test.go @@ -20,7 +20,7 @@ func TestIsProjectTypeValid(t *testing.T) { typ Type valid bool }{ - {TypeIndividual, false}, + {TypeIndividual, true}, {TypeRepository, true}, {TypeOrganization, true}, {UnknownType, false}, |