From 048899ad71b4c58677019b48e22f0013bf94bed1 Mon Sep 17 00:00:00 2001 From: Timo N Date: Sat, 11 Apr 2020 07:33:13 +0200 Subject: [PATCH] [Web] Fixed read write API permissions (#3465) --- data/web/inc/sessions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/sessions.inc.php b/data/web/inc/sessions.inc.php index 683ebf17..d543458d 100644 --- a/data/web/inc/sessions.inc.php +++ b/data/web/inc/sessions.inc.php @@ -57,7 +57,7 @@ if (!empty($_SERVER['HTTP_X_API_KEY'])) { $_SESSION['mailcow_cc_username'] = 'API'; $_SESSION['mailcow_cc_role'] = 'admin'; $_SESSION['mailcow_cc_api'] = true; - if ($api_return['api_key'] == 'rw') { + if ($api_return['access'] == 'rw') { $_SESSION['mailcow_cc_api_access'] = 'rw'; } else {