The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Limit Items in views based on user role

Labels

This Discussion is public

Notifications

I'm sure a lot of you know how to do this but it could be helpful to others down the road.

I have a case where I'm displaying a list of users in a table and needed to have a hyperlink to further detail; but only have this available for users with the editor role and above, anyone other role would just see the users name.

After a bit of searching I came to this solution:

In the <td> add the following:

ADD CONTENT FOR EYES ONLY EDITORS HERE ADD CONTENT FOR EVERYONE ELSE HERE

It seems the editor stripped out my code, please see attached text file


Attachment:
userroleexample.txt

Discussion closed.