The Playwright browser running inside celery starts a new, unauthorized session when requesting a PDF for export. This means that by default, only public casebooks can be exported as PDFs.
Users should be able to make PDFs of their own private casebooks.
Establish a method for the Playwright task to safely access a private casebook only when requested by a user authorized to view that same casebook.
The Playwright browser running inside celery starts a new, unauthorized session when requesting a PDF for export. This means that by default, only public casebooks can be exported as PDFs.
Users should be able to make PDFs of their own private casebooks.
Establish a method for the Playwright task to safely access a private casebook only when requested by a user authorized to view that same casebook.