Fix creating new things with a link share auth
This commit is contained in:
@ -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 New Issue
Block a user