webmail: show link to webaccount interface in top right

only if account web interface is enabled on the same listener and same http/https scheme.
This commit is contained in:
Mechiel Lukkien
2024-04-19 17:44:31 +02:00
parent 70adf353ee
commit 8a1d81c29a
11 changed files with 46 additions and 17 deletions

View File

@ -377,7 +377,7 @@ func TestWebmail(t *testing.T) {
}
rr := httptest.NewRecorder()
rr.Body = &bytes.Buffer{}
handle(apiHandler, false, rr, req)
handle(apiHandler, false, "", rr, req)
if rr.Code != expStatusCode {
t.Fatalf("got status %d, expected %d (%s)", rr.Code, expStatusCode, readBody(rr.Body))
}