How to hide widget based on user role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 04:43 PM
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
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2017 02:04 AM
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.