summaryrefslogtreecommitdiff
path: root/src/store/modules/GlobalStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/GlobalStore.js')
-rw-r--r--src/store/modules/GlobalStore.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js
index 95d7a083..74eb1e80 100644
--- a/src/store/modules/GlobalStore.js
+++ b/src/store/modules/GlobalStore.js
@@ -40,6 +40,7 @@ const GlobalStore = {
: true,
username: localStorage.getItem('storedUsername'),
isAuthorized: true,
+ userPrivilege: null,
},
getters: {
assetTag: (state) => state.assetTag,
@@ -51,6 +52,7 @@ const GlobalStore = {
isUtcDisplay: (state) => state.isUtcDisplay,
username: (state) => state.username,
isAuthorized: (state) => state.isAuthorized,
+ userPrivilege: (state) => state.userPrivilege,
},
mutations: {
setAssetTag: (state, assetTag) => (state.assetTag = assetTag),
@@ -70,6 +72,9 @@ const GlobalStore = {
state.isAuthorized = true;
}, 100);
},
+ setPrivilege: (state, privilege) => {
+ state.userPrivilege = privilege;
+ },
},
actions: {
async getBmcTime({ commit }) {