aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modern/src/common/util/permissions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/util/permissions.js b/modern/src/common/util/permissions.js
index 76e0aa58..8a63b5a1 100644
--- a/modern/src/common/util/permissions.js
+++ b/modern/src/common/util/permissions.js
@@ -7,7 +7,7 @@ export const useAdministrator = () => useSelector((state) => {
export const useManager = () => useSelector((state) => {
const admin = state.session.user.administrator;
- const manager = (state.session.user.userLimit || 0) > 0;
+ const manager = (state.session.user.userLimit || 0) !== 0;
return admin || manager;
});