fix wrong relation name

This commit is contained in:
Adrian Zürcher
2026-02-16 22:00:25 +01:00
parent a094b70b5b
commit 4b574d4486

View File

@@ -207,7 +207,7 @@ func (aH *AccessHandler) UpdateUser(c *gin.Context) {
}
var currentUser models.User
err := aH.dbHandler.GetById(&currentUser, user.Id, "Role", "Workspace")
err := aH.dbHandler.GetById(&currentUser, user.Id, "Role", "Workspaces")
if err != nil {
aH.logger.Error("UpdateUser", err)
c.JSON(http.StatusInternalServerError, nil)