Hi, I'm using dashboard-login to control user access to my dash. I defined two user groups and am controlling as follows. However, if I login to the system with the admin user, for example, even putting hide in a specific flow, this same flow is displayed to the admin group user.
if (userGroup === "admin") {
/* ui-control payload /
msg.payload = {
group: {
show : [
],
hide : [
"Home_Status_Linha_1"
]
}
};
} else {
/ ui-control payload */
msg.payload = {
group: {
show : [
"Linha_1"
],
hide : [
"Home_Status_Linha_1",
"Home_Sistema_Login"
]
}
};
}