Skip to content

Commit

Permalink
Update GetList.php
Browse files Browse the repository at this point in the history
Use new base class constant in canRemove conditional instead of hard-coded inline array
  • Loading branch information
smg6511 committed Sep 20, 2023
1 parent fae37d3 commit 3ec86e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Revolution/Processors/Context/GetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 3ec86e4

Please sign in to comment.