Skip to content

Commit d10e8fc

Browse files
committed
Add an extra check if the record can be edited.
1 parent 64d9bb2 commit d10e8fc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

libraries/legacy/controller/form.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,17 @@ public function reload($key = null, $urlVar = null)
865865

866866
$recordId = $this->input->getInt($urlVar);
867867

868+
if (!$this->allowEdit($data, $key))
869+
{
870+
$app->redirect(
871+
JRoute::_(
872+
'index.php?option=' . $this->option . '&view=' . $this->view_list
873+
. $this->getRedirectToListAppend(), false
874+
)
875+
);
876+
$app->close();
877+
}
878+
868879
// Populate the row id from the session.
869880
$data[$key] = $recordId;
870881

0 commit comments

Comments
 (0)