Added suborg management for users

This commit is contained in:
frikky
2021-11-22 23:30:54 +01:00
parent d0626b0290
commit 623a365030
5 changed files with 127 additions and 10 deletions
+1 -1
View File
@@ -3056,7 +3056,7 @@ func buildSwaggerApp(resp http.ResponseWriter, body []byte, user shuffle.User) {
if test.Editing && len(user.Id) > 0 {
// Quick verification test
ctx := context.Background()
app, err := shuffle.GetApp(ctx, test.Id, user)
app, err := shuffle.GetApp(ctx, test.Id, user, false)
if err != nil {
log.Printf("[WARNING] Error getting app when editing: %s", app.Name)
resp.WriteHeader(401)