Forum Discussion
VarunGrazitti
Boss
RogersRoland - You need to create a macro where you define all the roles which are allowed to see this like admin, moderator or xyz. Then, instead of isAdmin, may be create a variable called accessHolders to make it more obvious.
RogersRoland
8 years agoExpert
So i was able to resolve the role issue but changing from administrator to moderator instead. It worked better for our Community setup.
I did however encounter an error now that I pushed the update live.
I am currently running
<#assign qry = "select email from users where id = '${user.id}'" /> <#assign email = rest("2.0", "/search?q=" + qry?url + "&restapi.response_style=view").data.items[0].email /> <span class="label">Email:</span> <span class="value">${email}</span>
However the result for email result is my own. Did i input something wrong?
Related Content
- 5 years ago
- 3 years ago
- 10 months ago