diff options
author | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-20 16:02:48 +0000 |
---|---|---|
committer | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-20 16:02:48 +0000 |
commit | fbf1be890ad30cd3a294c969fed3efe61ad59974 (patch) | |
tree | b6b014e98b6f79bd3d9b05aac4a1da355a11804b /modern/src/common/selectors.js | |
parent | 4a6ed2462ed5ed2960fc8245ac3c5bae967e685b (diff) | |
parent | 16d579d1628bd8aa4a8d1f262ed70face50af907 (diff) | |
download | etbsa-traccar-web-fbf1be890ad30cd3a294c969fed3efe61ad59974.tar.gz etbsa-traccar-web-fbf1be890ad30cd3a294c969fed3efe61ad59974.tar.bz2 etbsa-traccar-web-fbf1be890ad30cd3a294c969fed3efe61ad59974.zip |
Merge remote-tracking branch 'origin/master' into device_list
Diffstat (limited to 'modern/src/common/selectors.js')
-rw-r--r-- | modern/src/common/selectors.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/common/selectors.js b/modern/src/common/selectors.js new file mode 100644 index 0000000..44a0c54 --- /dev/null +++ b/modern/src/common/selectors.js @@ -0,0 +1,3 @@ +export const getIsAdmin = (state) => state.session.user?.administrator; + +export const getUserId = (state) => state.session.user?.id; |