hypothesis / h

Annotate with anyone, anywhere.
https://hypothes.is/
BSD 2-Clause "Simplified" License
2.96k stars 427 forks source link

Support listing members of private groups in the group form #9085

Closed robertknight closed 1 day ago

robertknight commented 5 days ago

https://github.com/hypothesis/h/pull/9079 added an initial read-only list of members to the "Members" tab in the group form. That iteration only supported listing members of open groups because the call to list members was unauthenticated.

This PR changes the call to work the same way as the (authenticated) API calls the forms use to create and edit groups. This enables the members list to work for private groups as well.

Summary of changes:

Testing:

  1. Select a private group in activity pages and click "Edit group".
  2. Click the "Members" link and you should see the group's members listed.