fixes permissions for sending notifications