diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-12 17:05:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 17:05:17 -0700 |
commit | 13a16a9ce640060b87ee00955c99855e9e4e2fe2 (patch) | |
tree | f742b820257f3e15c90fc545f20fa4f7f06a7821 /modern/src/common | |
parent | ae822a2a39a38e3f3715c4573835b0ecd8646fa4 (diff) | |
parent | ea4ec2d769866db3490514b429cd95d314d19141 (diff) | |
download | etbsa-traccar-web-13a16a9ce640060b87ee00955c99855e9e4e2fe2.tar.gz etbsa-traccar-web-13a16a9ce640060b87ee00955c99855e9e4e2fe2.tar.bz2 etbsa-traccar-web-13a16a9ce640060b87ee00955c99855e9e4e2fe2.zip |
Merge pull request #874 from dkyeremeh/group-config
Configurations And settings
Diffstat (limited to 'modern/src/common')
-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; |