[Web] Fix sieve detection for users

This commit is contained in:
andre.peters
2018-01-18 11:55:44 +01:00
parent 5648ec6d39
commit a09ed211bc
2 changed files with 1 additions and 8 deletions

View File

@@ -1,12 +1,5 @@
<?php
function docker($service_name, $action, $attr1 = null, $attr2 = null, $extra_headers = null) {
if ($_SESSION['mailcow_cc_role'] != "admin") {
$_SESSION['return'] = array(
'type' => 'danger',
'msg' => sprintf($lang['danger']['access_denied'])
);
return false;
}
$curl = curl_init();
curl_setopt($curl, CURLOPT_HTTPHEADER,array( 'Content-Type: application/json' ));
switch($action) {