mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
remove qiwi from donate links and fix ts icon
also we have a reason
This commit is contained in:
@@ -2,6 +2,7 @@ package api
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
sets "server/settings"
|
||||
@@ -19,7 +20,8 @@ import (
|
||||
// @Success 200
|
||||
// @Router /shutdown [get]
|
||||
func shutdown(c *gin.Context) {
|
||||
if sets.ReadOnly {
|
||||
reasonStr := strings.ReplaceAll(c.Param("reason"), `/`, "")
|
||||
if sets.ReadOnly && reasonStr == "" {
|
||||
c.Status(http.StatusForbidden)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user