Hi Team,
It's been a while, I am seeking assistance if it's possible to filter gallery based on user security level? Like if the app will detect that the user viewing the app is the admin, he/she will see all gallery values?
Kindly see screen shot of my code on start.
Thank you!
Hello, it's already working I just forgot to click the run on start button that's why it's return value is null.
Thank you
Hello, Thank you for your answer. I tried the logic statement above,
but lookup returning blank, idk why it returns blank when in MS List it has true value. Thank you!
If you have a separate list for security privileges, you can use If condition for Filters.
If(LookUp(SecurityTable,Email = User().Email,Role) = "Admin",DataSource,Filter(filer condition for other users))
Here if the role is Admin from SecurityTable that contains email and roles, it will display whole datasource but if the role is other than Admin, you can specify your own filter.
Cheers!
WarrenBelz
146,635
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional