aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/selectors.js
diff options
context:
space:
mode:
authorDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-20 16:02:48 +0000
committerDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-20 16:02:48 +0000
commitfbf1be890ad30cd3a294c969fed3efe61ad59974 (patch)
treeb6b014e98b6f79bd3d9b05aac4a1da355a11804b /modern/src/common/selectors.js
parent4a6ed2462ed5ed2960fc8245ac3c5bae967e685b (diff)
parent16d579d1628bd8aa4a8d1f262ed70face50af907 (diff)
downloadetbsa-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.js3
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;