how to hideUser statistics

Need help? Post your questions here.

Moderator: moderators

how to hideUser statistics

Postby beehlerj » Sat Dec 14, 2013 2:56 am

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
beehlerj
 
Posts: 7
Joined: Mon Feb 20, 2012 10:02 pm

Re: how to hideUser statistics

Postby ytechie » Thu Dec 26, 2013 3:10 pm

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
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York


Return to Help

Who is online

Users browsing this forum: No registered users and 74 guests