From 3ec86e4dbe96bafe4154a354186e26a50fc82dea Mon Sep 17 00:00:00 2001 From: Jim Graham Date: Wed, 20 Sep 2023 12:54:48 -0400 Subject: [PATCH] Update GetList.php Use new base class constant in canRemove conditional instead of hard-coded inline array --- core/src/Revolution/Processors/Context/GetList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/Revolution/Processors/Context/GetList.php b/core/src/Revolution/Processors/Context/GetList.php index 84d96221df0..c4ee780653b 100644 --- a/core/src/Revolution/Processors/Context/GetList.php +++ b/core/src/Revolution/Processors/Context/GetList.php @@ -144,7 +144,7 @@ public function prepareRow(xPDOObject $object) if ($this->canEdit) { $contextArray['perm'][] = 'pedit'; } - if (!in_array($object->get('key'), ['mgr', 'web']) && $this->canRemove) { + if (!in_array($object->get('key'), $this->classKey::RESERVED_KEYS) && $this->canRemove) { $contextArray['perm'][] = 'premove'; }