Membership permissions

Changes for #746