aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util/useFeatures.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/util/useFeatures.js')
-rw-r--r--modern/src/common/util/useFeatures.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/common/util/useFeatures.js b/modern/src/common/util/useFeatures.js
index f0a8299a..7a7ffcd2 100644
--- a/modern/src/common/util/useFeatures.js
+++ b/modern/src/common/util/useFeatures.js
@@ -2,6 +2,9 @@ import { useSelector } from 'react-redux';
const get = (server, user, key) => {
if (server && user) {
+ if (user.administrator) {
+ return false;
+ }
if (server.forceSettings) {
return server.attributes[key] || user.attributes[key] || false;
}