Fix calling removed function qa_edit_history_perms()