Skip to content
Snippets Groups Projects
Commit 66caae74 authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XWIKI-19758: Better control in Filter application

* fix deprecated call
parent a0f647f8
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
{{velocity}} {{velocity}}
#if ($request.convert) #if ($request.convert)
#if ($services.security.authorization.hasAccess('programming', $context.userReference, $doc.documentReference)) #if ($services.security.authorization.hasAccess('programming', $xcontext.userReference, $doc.documentReference))
#if ($targetStandardOutput) #if ($targetStandardOutput)
$response.setContentType('application/octet-stream') $response.setContentType('application/octet-stream')
$response.setHeader('Content-Disposition', 'attachment; filename=target'); $response.setHeader('Content-Disposition', 'attachment; filename=target');
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
</fieldset> </fieldset>
<p> <p>
#if ($services.security.authorization.hasAccess('programming', $context.userReference, $doc.documentReference)) #if ($services.security.authorization.hasAccess('programming', $xcontext.userReference, $doc.documentReference))
<input class="button" type="submit" name="convert" value="Convert"/> <input class="button" type="submit" name="convert" value="Convert"/>
#else #else
<input class="button" type="submit" name="convert" value="Convert" disabled title="You are not allowed to start a conversion."/> <input class="button" type="submit" name="convert" value="Convert" disabled title="You are not allowed to start a conversion."/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment