• Robert Knight's avatar
    Show "Leave group" option for open and restricted groups that user is a member of · d14c255b
    Robert Knight authored
    Previously the "Leave group" option was only shown for private groups on the
    basis that membership of open and restricted groups was managed by h admins.
    However first-party Hypothesis users can now create open and restricted groups
    themselves and members of these groups will see an option to leave the group on
    activity pages. Align whether the client shows the "Leave group" option with h's
    behavior.
    
    During this change it was noticed that the documentation in the code and test
    descriptions did not match the actual handling of `allowLeavingGroups`. The
    comments said that services had to explicitly set `allowLeavingGroups` to
    prevent users leaving. However the code would treat `allowLeavingGroups` as false
    if a) service configuration was present and b) the value of `allowLeavingGroups`
    was falsey (including undefined). Changing this behavior may cause issues for
    existing users of third party authorities, so this commit updates the
    documentation and tests to accurately describe the current behavior.
    
    Fixes https://github.com/hypothesis/client/issues/6637
    d14c255b
Name
Last commit
Last update
..
test Loading commit data...
account-id.ts Loading commit data...
annotation-metadata.ts Loading commit data...
annotation-segment.ts Loading commit data...
annotation-sharing.ts Loading commit data...
annotation-user.ts Loading commit data...
annotations-by-user.ts Loading commit data...
build-thread.ts Loading commit data...
export-annotations.ts Loading commit data...
filter-annotations.ts Loading commit data...
group-list-item-common.ts Loading commit data...
group-organizations.ts Loading commit data...
groups.ts Loading commit data...
import.ts Loading commit data...
is-third-party-service.ts Loading commit data...
permissions.ts Loading commit data...
query-parser.ts Loading commit data...
session.ts Loading commit data...
strip-internal-properties.ts Loading commit data...
tabs.ts Loading commit data...
theme.ts Loading commit data...
thread-annotations.ts Loading commit data...
thread-sorters.ts Loading commit data...
thread.ts Loading commit data...
version-data.ts Loading commit data...
visible-threads.ts Loading commit data...