Add Project Files section and show company name for external users on project detail

This commit is contained in:
Krao Hasanee
2026-05-14 15:01:32 -04:00
parent eee0885811
commit c32f9d1366
24 changed files with 1729 additions and 771 deletions
@@ -0,0 +1,5 @@
-- Allow subs to delete their own draft or submitted invoices (not paid)
drop policy if exists "Sub delete own draft invoices" on public.subcontractor_invoices;
create policy "Sub delete own unpaid invoices" on public.subcontractor_invoices
for delete using (profile_id = auth.uid() and get_my_role() = 'external' and status != 'paid');