aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util/permissions.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-04 17:39:20 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-04 17:39:20 -0700
commit7347b398aae694c58feb1a48944778a7c581dc72 (patch)
tree7b43ea0bc78911256ffbf3c1c4402e401385a10e /modern/src/common/util/permissions.js
parent04e50e512f59983f330ac866793ff9da41ac4fce (diff)
downloadtrackermap-web-7347b398aae694c58feb1a48944778a7c581dc72.tar.gz
trackermap-web-7347b398aae694c58feb1a48944778a7c581dc72.tar.bz2
trackermap-web-7347b398aae694c58feb1a48944778a7c581dc72.zip
Fix manager check
Diffstat (limited to 'modern/src/common/util/permissions.js')
-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;
});