Hi, I have a gallery with below codes
Onselect property
Switch(
ThisItem.Title,
"User",
Navigate('User Page'),
"Admin",
If(
isAdmin,
Navigate('Admin Page'),
Notify("Not Admin, please use the User access")
);
UpdateContext({SelectedTab: "Tab1"});
)
Item property
[
{
Title: "User",
Image: checklist
},
{
Title: "Admin",
Image: people
}
]
It works well but I am wondering if there is a way to show gallery item depending on user or admin login? Basically I want user to see user only while admin can see both user and admin.