Commit 34d10843 authored by TravisCarden's avatar TravisCarden

Issue #2837327: InvalidArgumentException in route access check on update.php

parent a672e71e
......@@ -40,6 +40,11 @@ class ChecklistapiAccessCheck implements AccessInterface {
$op = !empty($op) ? $op : 'any';
$id = $request->attributes->get('checklist_id');
if (!$id) {
return AccessResult::neutral();
}
return AccessResult::allowedIf(checklistapi_checklist_access($id, $op));
}
}
Markdown is supported
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