Commit 5ccd7084 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Set isUserAllowed property with value coming from permissions object

parent a7430ebc
...@@ -24,13 +24,12 @@ ...@@ -24,13 +24,12 @@
}); });
newData.stages.forEach((item) => { newData.stages.forEach((item) => {
const stageName = item.title.toLowerCase();
item.active = false; item.active = false;
item.isUserAllowed = true; // This should come from server item.isUserAllowed = data.permissions[stageName];
item.component = `stage-${item.title.toLowerCase()}-component`; item.component = `stage-${stageName}-component`;
}); });
newData.analytics = data; newData.analytics = data;
return newData; return newData;
}, },
setLoadingState(state) { 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