Add access controls window

This commit is contained in:
Pixeldrain-Server committed 2024-11-19 15:31:51 +01:00
1 parent 27882303d9
commit f7a0ff4538
41 files changed
+307 -63

No files matched your search

+2
View File
@@ -33,6 +33,8 @@ func (wc *WebController) serveDirectory(w http.ResponseWriter, r *http.Request,
http.Redirect(w, r, "/login", http.StatusSeeOther)
} else if err.Error() == "unavailable_for_legal_reasons" {
wc.serveUnavailableForLegalReasons(w, r)
} else if err.Error() == "permission_denied" {
wc.serveForbidden(w, r)
} else {
log.Error("Failed to get path: %s", err)
wc.templates.Run(w, r, "500", td)
+1 -1
View File
@@ -264,7 +264,7 @@ func (s styleSheet) String() string {
s.BodyBackground.CSS(),
s.BodyText.CSS(),
s.Separator.CSS(),
s.BodyColor.WithAlpha(0.8).CSS(), // shaded_background
s.BodyColor.WithAlpha(0.75).CSS(), // shaded_background
s.CardColor.CSS(),
s.Chart1.CSS(),
s.Chart2.CSS(),