From f06773eca33fd99bbdaf8163e6e6598bd75d25f7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 3 Jul 2022 13:03:16 -0700 Subject: All features enabled for admin (fix #694) --- modern/src/common/util/useFeatures.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modern/src/common') 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; } -- cgit v1.2.3