diff --git a/actions.php b/actions.php index 8a3bcf832..bce553bc1 100644 --- a/actions.php +++ b/actions.php @@ -3,7 +3,6 @@ include_once __DIR__.'/core.php'; use Models\Note; -use Models\User; use Modules\Checklists\Check; use Modules\Checklists\Checklist; diff --git a/modules/checklists/modutil.php b/modules/checklists/modutil.php index 6e369ebff..120a0a5c4 100644 --- a/modules/checklists/modutil.php +++ b/modules/checklists/modutil.php @@ -3,7 +3,7 @@ function renderChecklist($check, $level = 0) { $user = auth()->getUser(); - $enabled = $check->assignedUsers->pluck('id')->search($user->id) !== false; + $enabled = $check->assignedUsers ? $check->assignedUsers->pluck('id')->search($user->id) !== false : true; $result = '