cancel
Showing results for 
Search instead for 
Did you mean: 

How to check logged in user is admin in Share?

patil
Champ on-the-rise
Champ on-the-rise
I have to check whether the logged in user is admin or not in Alfresco share.
Based on the role I am going to hide or display some of the fields..

Thanks,
Patil
3 REPLIES 3

kirit
Champ on-the-rise
Champ on-the-rise
Have you tried <#if !user.isAdmin> ?
Your can put your visible fields inside this loop
e.g
<#if user.isAdmin>
    display fields 1..
    display fields 2..
</#if>

patil
Champ on-the-rise
Champ on-the-rise
Thanks Kirit. It worked

sjoerdjump
Champ in-the-making
Champ in-the-making
Hi, is it posible to do the same for certain groups or organisations?

I want to hide the find people button for evey group OTHER than a my_group or my_organisation

Would it be something like:if user.isGROUP_My_group ?

Thanks!