From 79095b526c1c44c9a7a765530ba45e0f8e3f58eb Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 29 Mar 2020 22:05:30 -0700 Subject: [PATCH] Add permissions checking to the settings page --- .../server/settings/SettingsContainer.tsx | 79 ++++++++++--------- 1 file changed, 42 insertions(+), 37 deletions(-) diff --git a/resources/scripts/components/server/settings/SettingsContainer.tsx b/resources/scripts/components/server/settings/SettingsContainer.tsx index d487bfc8f..ffdad1208 100644 --- a/resources/scripts/components/server/settings/SettingsContainer.tsx +++ b/resources/scripts/components/server/settings/SettingsContainer.tsx @@ -6,6 +6,7 @@ import { ApplicationStore } from '@/state'; import { UserData } from '@/state/user'; import RenameServerBox from '@/components/server/settings/RenameServerBox'; import FlashMessageRender from '@/components/FlashMessageRender'; +import Can from '@/components/elements/Can'; export default () => { const user = useStoreState(state => state.user.data!); @@ -15,46 +16,50 @@ export default () => {
- -
- - -
-
- - -
-
-
-
-

- Your SFTP password is the same as the password you use to access this panel. -

+ + +
+ + +
+
+ + +
+
+
+
+

+ Your SFTP password is the same as the password you use to access this panel. +

+
+
+
- +
+
+ +
+
- -
- -
+
);