How to check logged in user is admin in Share?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2011 10:46 PM
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
Based on the role I am going to hide or display some of the fields..
Thanks,
Patil
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2011 01:43 AM
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>
Your can put your visible fields inside this loop
e.g
<#if user.isAdmin>
display fields 1..
display fields 2..
</#if>

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2011 09:31 AM
Thanks Kirit. It worked
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2011 04:56 PM
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!
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!
