jmurray
12 years agoChampion
Group Role vs. Regular Roles
Hi,
I'm trying to do something like this, but with group roles:
<#assign is_gm = false /> <#list restadmin("/users/id/${user.id?c}/roles").roles.role as role> <#if role.name?? && (role.name == "GroupMember")> <#assign is_gm = true />
Then if it's true or false, I can make the page display accordingly.
Apparently this doesn't work for Group Roles though, because it's doesn't recognize GroupMember as a role. So how do I modify it to check whether or not a person has a group role, as opposed to a regular role?
Thanks