++ fix: add pdf download visibility setting

This commit is contained in:
2026-04-16 10:37:05 +00:00
parent c85f2aaea0
commit 1534c84d45
6 changed files with 273 additions and 64 deletions

View File

@@ -25,8 +25,9 @@ class AssignmentPdfController extends Controller
]);
return view('assignments.pdf-viewer', [
'assignment' => $assignment,
'pdfUrl' => $pdfUrl,
'assignment' => $assignment,
'pdfUrl' => $pdfUrl,
'showDownload' => (bool) \App\Models\Setting::getValue('pdf_viewer_show_download', true),
]);
}