public function canUserEdit(UserAccountModel $user = null) { if (!$user) { return false; } $curatedListRepo = new CuratedListRepository(); if ($curatedListRepo->canUserEditCuratedList($user, $this)) { return true; } return false; }