I have an app with the mainscreen (landing page) Screen1. It has two buttons - Admin and User. These are on a sharepoint intended to control user access.
I want the Admin button to only be visible if the user is an Admin but I am not succeeding at all.
I applied this code to App:
Set(currentUser, User());
Set(
currentUserRole,
LookUp(
'User Access',
'User'.Email = currentUser.Email,
Role
)
);
And I tried applying this code:
currentUserRole = "Admin" - to the visible property of the admin button but it did not work.
Please assist. I am fairly frustrated.
