From e0ed360e28756632464c177ed0570036aa7dc047 Mon Sep 17 00:00:00 2001 From: Frikky Date: Fri, 4 Apr 2025 11:22:33 +0200 Subject: [PATCH] Fixed a problem with admin not being admin on the /admin page --- backend/go-app/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 746904aa..585569e1 100755 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -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,