Wiki-Quellcode von Token Macro
Version 4.1 von Timo Schmid am 01.07.2020 10:22
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 |
![]() |
4.1 | 9 | #if($xwiki.getUser().isUserInGroup('XWiki.VorbeugenderBS') == false && $xwiki.getUser().isUserInGroup('XWiki.Arbeitssicherheit') == false) |
![]() |
3.8 | 10 | #set ($showattachments = false) |
![]() |
3.9 | 11 | #set ($showhistory = false) |
12 | #set ($showinformation = false) | ||
![]() |
4.1 | 13 | #end |
![]() |
1.1 | 14 | {{/velocity}} |