@@ -4,7 +4,7 @@ go 1.23.0
|
|||||||
|
|
||||||
toolchain go1.23.7
|
toolchain go1.23.7
|
||||||
|
|
||||||
//replace github.com/shuffle/shuffle-shared => ../../../shuffle-shared
|
//replace github.com/shuffle/shuffle-hared => ../../../shuffle-shared
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go/datastore v1.15.0
|
cloud.google.com/go/datastore v1.15.0
|
||||||
|
|||||||
@@ -1024,6 +1024,11 @@ func handleInfo(resp http.ResponseWriter, request *http.Request) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if parsedAdmin == "true" {
|
||||||
|
userInfo.Role = "admin"
|
||||||
|
userInfo.ActiveOrg.Role = "admin"
|
||||||
|
}
|
||||||
|
|
||||||
chatDisabled := false
|
chatDisabled := false
|
||||||
if os.Getenv("SHUFFLE_CHAT_DISABLED") == "true" {
|
if os.Getenv("SHUFFLE_CHAT_DISABLED") == "true" {
|
||||||
chatDisabled = true
|
chatDisabled = true
|
||||||
@@ -1064,6 +1069,7 @@ func handleInfo(resp http.ResponseWriter, request *http.Request) {
|
|||||||
activatedAppIds = append(activatedAppIds, app.ID)
|
activatedAppIds = append(activatedAppIds, app.ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
returnValue := shuffle.HandleInfo{
|
returnValue := shuffle.HandleInfo{
|
||||||
Success: true,
|
Success: true,
|
||||||
Username: userInfo.Username,
|
Username: userInfo.Username,
|
||||||
|
|||||||
Reference in New Issue
Block a user