Fix creating new things with a link share auth
This commit is contained in:
parent
cb095d70df
commit
4137d4aed2
3 changed files with 19 additions and 13 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue