mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-12 23:07:13 +00:00
[Web] Fixed read write API permissions (#3465)
This commit is contained in:
1 parent
730fa16a69
commit
048899ad71
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user