diff --git a/module/VuFind/src/VuFind/Controller/MyResearchController.php b/module/VuFind/src/VuFind/Controller/MyResearchController.php index 30ba1c8a564c52250bd8483d5599cf4b80e444b3..4f572a3bc0505f4a3aee2edcb33dafc9a547dbba 100644 --- a/module/VuFind/src/VuFind/Controller/MyResearchController.php +++ b/module/VuFind/src/VuFind/Controller/MyResearchController.php @@ -749,6 +749,11 @@ class MyResearchController extends AbstractBase $newList = ($id == 'NEW'); $list = $newList ? $table->getNew($user) : $table->getExisting($id); + // Make sure the user isn't fishing for other people's lists: + if (!$newList && !$list->editAllowed($user)) { + throw new ListPermissionException('Access denied.'); + } + // Process form submission: if ($this->formWasSubmitted('submit')) { if ($redirect = $this->processEditList($user, $list)) {