public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[API] Fixed broken if
c4c9d2a3
data/web/json_api.php | 2 ++
1 file changed, 2 insertions(+)
Diff
diff --git a/data/web/json_api.php b/data/web/json_api.php
index 5f3b0ea5..e5643dc5 100644
--- a/data/web/json_api.php
+++ b/data/web/json_api.php
@@ -135,6 +135,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error',
'msg' => 'Only POST method is allowed!'
));
+ }
switch ($category) {
case "time_limited_alias":
process_add_return(mailbox('add', 'time_limited_alias', $attr));
@@ -1080,6 +1081,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error',
'msg' => 'Only POST method is allowed!'
));
+ }
switch ($category) {
case "alias":
process_delete_return(mailbox('delete', 'alias', array('id' => $items)));