Dont send notifications to people who dont have access to a project

Currently email notifications ignore user access to projects, so that, for eg, a user that sets his/her settings to receive all email notifications will receive notifications even for projects he/she is not supposed to have access to. Small patch to fix this.