How to hide widget based on user role

tricial
Giga Contributor

So I have searched the community near and far and have not been able to find a solution.

I have cloned the ICON Link widget and need to now set the visibility of this based on the logged in user having a specific role.

If they have the role show the widget, if they don't have the role don't show the widget.

It seems simple enough, but I am new to ng-if angular and the data. options.schema stuff

I really could use some help with some sample code on how to achieve this.

Thank you very much

5 REPLIES 5

Good to know it worked.



If you are done with your testing & getting results as expected could you then mark the solution given as Correct so that it does not appear in the un-answered list.



Thanks,


Jaspal Singh



Hit Like or Correct on the impact of response.