Fix packagehistory filter
Fix entity edit page when user is not superuser