Fixed a problem with admin not being admin on the /admin page

This commit is contained in:
Frikky
2025-04-04 11:22:33 +02:00
parent aa1e7e345e
commit e0ed360e28
+6
View File
@@ -1024,6 +1024,11 @@ func handleInfo(resp http.ResponseWriter, request *http.Request) {
}
}
if parsedAdmin == "true" {
userInfo.Role = "admin"
userInfo.ActiveOrg.Role = "admin"
}
chatDisabled := false
if os.Getenv("SHUFFLE_CHAT_DISABLED") == "true" {
chatDisabled = true
@@ -1064,6 +1069,7 @@ func handleInfo(resp http.ResponseWriter, request *http.Request) {
activatedAppIds = append(activatedAppIds, app.ID)
}
returnValue := shuffle.HandleInfo{
Success: true,
Username: userInfo.Username,