-- Fix security issue: Remove the view and use direct queries instead
DROP VIEW IF EXISTS public.item_edit_history_view;

-- The item_edit_history table with proper RLS is sufficient
-- Application code will join with profiles table as needed