Changed code to allow access to mails to just superuser users