aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-01-01 22:36:35 -0600
committerGitHub <noreply@github.com>2023-01-01 22:36:35 -0600
commit0b3b2d8849a0683558141ce2937f71eaf70902c3 (patch)
tree6e6f444e8540f402ee8837fc41ab1c99e4035536 /src/web
parent22ffe499c022bff90c76b6519dbca3850cfa41f8 (diff)
parentadfe96f572c764c3567d7d7852273df7b492b33e (diff)
downloadslskd-0b3b2d8849a0683558141ce2937f71eaf70902c3.tar.gz
Merge pull request #817 from slskd/config
Increase security of config-related API endpoints
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/System/Options/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/components/System/Options/index.js b/src/web/src/components/System/Options/index.js
index d0872960..53364447 100644
--- a/src/web/src/components/System/Options/index.js
+++ b/src/web/src/components/System/Options/index.js
@@ -26,7 +26,7 @@ const Index = ({ options }) => {
const { remoteConfiguration, debug } = options;
const DebugButton = ({ ...props }) => {
- if (!debug) return <></>;
+ if (!remoteConfiguration || !debug) return <></>;
return <ShrinkableButton
icon='bug'