mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-05 16:08:21 +00:00
[Web] App password and API adjustments
This commit is contained in:
5 files changed
+21
-5
No files matched your search
@@ -107,7 +107,7 @@ if (isset($_GET['query'])) {
|
||||
|
||||
switch ($action) {
|
||||
case "add":
|
||||
if ($_SESSION['mailcow_cc_api_access'] == 'ro' || isset($_SESSION['pending_mailcow_cc_username'])) {
|
||||
if ($_SESSION['mailcow_cc_api_access'] == 'ro' || isset($_SESSION['pending_mailcow_cc_username']) || !isset($_SESSION["mailcow_cc_username"])) {
|
||||
http_response_code(403);
|
||||
echo json_encode(array(
|
||||
'type' => 'error',
|
||||
|
||||
Reference in new issue
Block a user