Page 1 of 1

how to hideUser statistics

PostPosted: Sat Dec 14, 2013 2:56 am
by beehlerj
How do i go about hiding User statistics from non admins? it is located on the home tab. I can make the charts disappear but i would like them visible to the admin. Please help
Thank you in advance

Re: how to hideUser statistics

PostPosted: Thu Dec 26, 2013 3:10 pm
by ytechie
What you want to do is put the code for the users tab between these tags:

Code: Select all
<c:if test="${model.user.adminRole}">

     <c:when test="${model.listType eq 'users'}">
     ...
     </c:when>

</c:if>

Hope this helps!

-Yosef