Hello,
I am working on a perspective session and have added an Expression to the visibility of a button that requires login under a certain user.
isAuthorized(true, 'Authenticated/Roles/Administrator') ||
isAuthorized(true, 'Authenticated/Roles/Maintenance')
the issue I am having is that when you open perspective or change page views and not "logged in " the button is visible for a few seconds and will function before disappearing.
I would put the expression on the enabled prop instead of visible. Then make sure you save the view with it in the disabled state.
1 Like
so this is a template pulled down from a parent I have added that expression to the enable in the parent, but no change.
If you still have a local resource in place on the child project it will not use the parent settings. Make sure you remove the child resource/View.
What action are you performing with this button? I think every Action has a Security Settings button which allows you to specify who may perform the action, instead of relying on binding of props - though I do still highly recommend you bind the enabled
prop so that users can see the button shouldn't work for them.
1 Like