Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion action/approve.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ function handle_io_write(Doku_Event &$event, $param) {
return;
}

if ($INPUT->has('publish_approve')) {
if (!$INPUT->has('publish_approve')) {
return;
}

if(!checkSecurityToken()){
return;
}

if (!$this->helper->canApprove()) {
msg($this->getLang('wrong permissions to approve'), -1);
return;
Expand Down
8 changes: 7 additions & 1 deletion action/banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,14 @@ private function showApproveAction() {
}
}

$params = array(
'rev' => $REV,
'publish_approve' => 1,
'sectok' => getSecurityToken(),
);

echo '<span class="approval_action">';
echo '<a href="' . wl($ID, array('rev' => $REV, 'publish_approve'=>1)) . '">';
echo '<a href="' . wl($ID, $params) . '">';
echo $this->getLang('approve action');
echo '</a>';
echo '</span> ';
Expand Down