[Web] Fix sieve detection for users

master
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 <?php
function docker($service_name, $action, $attr1 = null, $attr2 = null, $extra_headers = null) { 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 = curl_init();
curl_setopt($curl, CURLOPT_HTTPHEADER,array( 'Content-Type: application/json' )); curl_setopt($curl, CURLOPT_HTTPHEADER,array( 'Content-Type: application/json' ));
switch($action) { switch($action) {

View File

@ -162,7 +162,7 @@ if (!isset($_SESSION['mailcow_cc_role'])) {
</div> </div>
</div><!-- pw change modal --> </div><!-- pw change modal -->
<!-- sieve filter modal --> <!-- sieve filter modal -->
<div class="modal fade" id="userFilterModal" tabindex="-1" role="dialog" aria-labelledby="pwChangeModalLabel"> <div class="modal fade" id="userFilterModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">