Changes for page Users

From version 9.1
edited by Andrea Omicini
on 2026/08/29 01:11
Change comment: There is no comment for this version
To version 6.1
edited by Andrea Omicini
on 2026/08/29 00:51
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -5,8 +5,7 @@
5 5  ## Nothing is hand-maintained here: the groups are the values declared by
6 6  ## XWiki.XWikiUsers.status, in the class's own order, and every user carrying a
7 7  ## status appears in exactly one of them. Add a status to the class and it shows
8 -## up here; change someone's status and they move. Disabled accounts (active = 0)
9 -## are left out.
8 +## up here; change someone's status and they move.
10 10  ##
11 11  ## Headings use the translation keys XWiki.XWikiUsers_status_<value>, so the page
12 12  ## is bilingual without a single string of its own.
... ... @@ -25,9 +25,7 @@
25 25   #set( $uDoc = $xwiki.getDocument($ref) )
26 26   #set( $uObj = $uDoc.getObject('XWiki.XWikiUsers') )
27 27   #set( $st = "$!uObj.getValue('status')" )
28 - ## `active` is unset on most user objects, so only an explicit 0 counts as disabled
29 - #set( $isActive = ("$!uObj.getValue('active')" != '0') )
30 - #if( $people.containsKey($st) && $isActive && !$seen.contains($ref) )
27 + #if( $people.containsKey($st) && !$seen.contains($ref) )
31 31   #set( $discard = $seen.add($ref) )
32 32   ## sort key: surname, then given name, then the reference
33 33   #set( $last = "$!uObj.getValue('last_name')" )
... ... @@ -48,7 +48,7 @@
48 48   #if( $group && !$group.isEmpty() )
49 49   #set( $group = $collectiontool.sort($group) )
50 50  
51 ->$services.localization.render("XWiki.XWikiUsers_status_${status}")
48 +>$services.localization.render("XWiki.XWikiUsers_status_${status}") (%%)//($group.size())//
52 52  
53 53   #foreach( $entry in $group )#if( !$foreach.first ) • #end#apicePerson($entry)#end
54 54