Fix bugs in object access control in the agenda email.