%USERINFO{format="$groups"}%
appends
isAdmin()
at the end of group membership list if the user is in TWikiAdminGroup. Sven explained that he added that to confirm user is a part of admin group even if it is renamed, or even if groups are defined outside TWiki.
The problem is that the isAdmin() tag is appended without a comma delinator so it could potentially confuse the last item in the list.
I'd propose creating a new
$admin
attribute for USERINFO that simply returns 1 if user is member of admin group and 0 if not.
--
TWiki:Main/LynnwoodBrown
- 23 Mar 2007
done, though I'm returning 'true' or 'false'