Fix permit_groups decorator