fix wrong relation name
This commit is contained in:
@@ -207,7 +207,7 @@ func (aH *AccessHandler) UpdateUser(c *gin.Context) {
|
||||
}
|
||||
|
||||
var currentUser models.User
|
||||
err := aH.dbHandler.GetById(¤tUser, user.Id, "Role", "Workspace")
|
||||
err := aH.dbHandler.GetById(¤tUser, user.Id, "Role", "Workspaces")
|
||||
if err != nil {
|
||||
aH.logger.Error("UpdateUser", err)
|
||||
c.JSON(http.StatusInternalServerError, nil)
|
||||
|
||||
Reference in New Issue
Block a user