aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/util')
-rw-r--r--modern/src/common/util/permissions.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/modern/src/common/util/permissions.js b/modern/src/common/util/permissions.js
index a18644a8..34aeb89d 100644
--- a/modern/src/common/util/permissions.js
+++ b/modern/src/common/util/permissions.js
@@ -26,10 +26,3 @@ export const useDeviceReadonly = () => useSelector((state) => {
const userDeviceReadonly = state.session.user?.deviceReadonly;
return !admin && (serverReadonly || userReadonly || serverDeviceReadonly || userDeviceReadonly);
});
-
-export const useEditable = () => useSelector((state) => {
- const admin = state.session.user?.administrator;
- const serverReadonly = state.session.server?.readonly;
- const userReadonly = state.session.user?.readonly;
- return admin || (!serverReadonly && !userReadonly);
-});