Fix projects mode bugs (#29593)

Fix for regressions introduced by #28805 

Enabled projects on repos created before the PR weren't detected. Also,
the way projects mode was detected in settings didn't match the way it
was detected on permission check, which leads to confusion.

Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
Denys KonovalovandGiteabot authored and GitHub committed 2024-03-04 20:49:21 +00:00
1 parent da3b7f5039
commit 1f0625a277
4 files changed
+10 -9

No files matched your search

-1
View File
@@ -520,7 +520,6 @@
id: 75
repo_id: 1
type: 8
config: "{\"ProjectsMode\":\"all\"}"
created_unix: 946684810
-