Fix not-working team memebership permissions change