fixed view Permissao and hasPermission in the views