diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-04 17:39:20 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-04 17:39:20 -0700 |
commit | 7347b398aae694c58feb1a48944778a7c581dc72 (patch) | |
tree | 7b43ea0bc78911256ffbf3c1c4402e401385a10e /modern/src | |
parent | 04e50e512f59983f330ac866793ff9da41ac4fce (diff) | |
download | trackermap-web-7347b398aae694c58feb1a48944778a7c581dc72.tar.gz trackermap-web-7347b398aae694c58feb1a48944778a7c581dc72.tar.bz2 trackermap-web-7347b398aae694c58feb1a48944778a7c581dc72.zip |
Fix manager check
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/common/util/permissions.js | 2 |
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; }); |