mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-07-17 16:45:06 +00:00
add missing access control
This commit is contained in:
parent
ed9264fd2a
commit
8a65b9d1c6
1 changed files with 8 additions and 0 deletions
|
|
@ -108,6 +108,14 @@ function fwdhost($_action, $_data = null) {
|
|||
}
|
||||
break;
|
||||
case 'delete':
|
||||
if ($_SESSION['mailcow_cc_role'] != "admin") {
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
'msg' => 'access_denied'
|
||||
);
|
||||
return false;
|
||||
}
|
||||
$hosts = (array)$_data['forwardinghost'];
|
||||
foreach ($hosts as $host) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue