diff --git a/controllers/util.go b/controllers/util.go index 6f8a922f..e1916354 100644 --- a/controllers/util.go +++ b/controllers/util.go @@ -96,6 +96,13 @@ func (c *ApiController) RequireSignedInUser() (*object.User, bool) { return nil, false } + if strings.HasPrefix(userId, "app/") { + tmpUserId := c.Input().Get("userId") + if tmpUserId != "" { + userId = tmpUserId + } + } + user, err := object.GetUser(userId) if err != nil { c.ResponseError(err.Error())