BigW Consortium Gitlab

Commit 5ccd7084 by Alfredo Sumaran

Set isUserAllowed property with value coming from permissions object

parent a7430ebc
......@@ -24,13 +24,12 @@
});
newData.stages.forEach((item) => {
const stageName = item.title.toLowerCase();
item.active = false;
item.isUserAllowed = true; // This should come from server
item.component = `stage-${item.title.toLowerCase()}-component`;
item.isUserAllowed = data.permissions[stageName];
item.component = `stage-${stageName}-component`;
});
newData.analytics = data;
return newData;
},
setLoadingState(state) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment