Rename DevEnableShare to EnableSharing

This commit is contained in:
Deluan
2023-01-29 20:33:10 -05:00
parent a651d65a5b
commit 68e6115789
14 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ func (api *Router) routes() http.Handler {
h(r, "getInternetRadioStations", api.GetInternetRadios)
h(r, "updateInternetRadioStation", api.UpdateInternetRadio)
})
if conf.Server.DevEnableShare {
if conf.Server.EnableSharing {
r.Group(func(r chi.Router) {
h(r, "getShares", api.GetShares)
h(r, "createShare", api.CreateShare)
+2 -2
View File
@@ -22,7 +22,7 @@ func (api *Router) GetUser(r *http.Request) (*responses.Subsonic, error) {
response.User.StreamRole = true
response.User.ScrobblingEnabled = true
response.User.DownloadRole = conf.Server.EnableDownloads
response.User.ShareRole = conf.Server.DevEnableShare
response.User.ShareRole = conf.Server.EnableSharing
return response, nil
}
@@ -38,7 +38,7 @@ func (api *Router) GetUsers(r *http.Request) (*responses.Subsonic, error) {
user.StreamRole = true
user.ScrobblingEnabled = true
user.DownloadRole = conf.Server.EnableDownloads
user.ShareRole = conf.Server.DevEnableShare
user.ShareRole = conf.Server.EnableSharing
response := newResponse()
response.Users = &responses.Users{User: []responses.User{user}}
return response, nil