Fixed bug when accessing a view using PerrmissionRequiredMixim without being logged in