0 Votes

Wiki source code of Groups with rights

Last modified by Ryan C on 2025/06/09 11:08

Hide last authors
Ryan C 1.1 1 {{velocity output="false"}}
2 #macro(getRows $uorg $clsname $filterMap $offset $limit $results $matchedCount)
3 #set($rows = [])
4 #set($results = $util.null)
5 #setVariable("$results" $rows)
6
7 #getUsersOrGroup($uorg $filterMap 0 0 $users $count)
8 #set($offlim = $offset + $limit)
9 #set($count = 0)
10 #foreach($user in $users)
11 #getRights($user $clsname $uorg $rights)
12 #if ($rights.allows.size() > 0 || $rights.denys.size() > 0)
13 #if ($count >= $offset && $count < $offlim)
14 #set ($discard = $rows.add($rights))
15 #end
16 #set ($count = $count + 1)
17 #end
18 #end
19
20 #set($matchedCount = $util.null)
21 #setVariable("$matchedCount" $count)
22 #end
23 {{/velocity}}