Commit 6a9b0e27 authored by ZeMKI's avatar ZeMKI
Browse files

Update StudyInterviewController.php

* permissions bugfix
parent b400ab4b
......@@ -12,6 +12,8 @@ class StudyInterviewController extends Controller
{
public function index(Study $study)
{
if (!auth()->user()->can('read-studies', $study->id)) abort(403, "You are not authorized to see this content.");
$data['interviews'] = $study->interviews()->get();
$data['study'] = $study;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment