mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-21 09:06:46 +09:00
Backport #39577 Fixes #39572 The shared user cards template calls the User-only `IsTypeBot` method. The profile organizations tab passed `*organization.Organization` values to that template, so `/{username}?tab=organizations` returned a 500 error. Organizations are now converted to Users before rendering. Co-authored-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
1 parent
99ac787400
commit
3ee1924069
2 files changed
+6
-1
No files matched your search
@@ -172,6 +172,7 @@ func testLinksAsUser(t *testing.T) {
|
||||
"/user2",
|
||||
"/user2?tab=stars",
|
||||
"/user2?tab=activity",
|
||||
"/user2?tab=organizations",
|
||||
"/user/settings",
|
||||
"/user/settings/account",
|
||||
"/user/settings/security",
|
||||
|
||||
Reference in new issue
Block a user