Wiki-Quellcode von Token Macro
Version 3.14 von Timo Schmid am 01.07.2020 10:19
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{velocity}} |
![]() |
2.1 | 2 | #if($xcontext.getAction() != 'edit') |
![]() |
1.1 | 3 | #set ($tokObj = $doc.getObject('XWiki.LoginTokenClass')) |
4 | #if ($tokObj.getProperty('token').value != $request.code) | ||
5 | #set ($redirurl = $xwiki.getURL($doc.parent)) | ||
![]() |
3.1 | 6 | #set ($dummy = $response.sendRedirect($redirurl)) |
![]() |
1.1 | 7 | #end |
![]() |
3.5 | 8 | #end |
![]() |
3.13 | 9 | #if($xwiki.getUser().isUserInGroup('XWiki.ANWANDER')) |
10 | Test | ||
11 | #end | ||
![]() |
3.8 | 12 | #set ($showattachments = false) |
![]() |
3.9 | 13 | #set ($showhistory = false) |
14 | #set ($showinformation = false) | ||
![]() |
1.1 | 15 | {{/velocity}} |