Fixed checking for E-mail permission