Browse Source

[Web] Fix sieve detection for users

andre.peters 7 years ago
parent
commit
a09ed211bc
2 changed files with 1 additions and 8 deletions
  1. 0 7
      data/web/inc/functions.docker.inc.php
  2. 1 1
      data/web/modals/user.php

+ 0 - 7
data/web/inc/functions.docker.inc.php

@@ -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) {

+ 1 - 1
data/web/modals/user.php

@@ -162,7 +162,7 @@ if (!isset($_SESSION['mailcow_cc_role'])) {
   </div>
 </div><!-- pw change 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-content">
       <div class="modal-header">