Fix creating new things with a link share auth

This commit is contained in:
kolaente 2020-05-12 15:51:48 +02:00
parent cb095d70df
commit 4137d4aed2
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
3 changed files with 19 additions and 13 deletions

View file

@ -73,11 +73,12 @@ func ListUsersForList(c echo.Context) error {
}
list := models.List{ID: listID}
currentUser, err := user.GetCurrentUser(c)
auth, err := GetAuthFromClaims(c)
if err != nil {
return handler.HandleHTTPError(err, c)
}
canRead, err := list.CanRead(currentUser)
canRead, err := list.CanRead(auth)
if err != nil {
return handler.HandleHTTPError(err, c)
}