Changes for page Filter streams

Last modified by Scott Gagan on 2024/04/16 21:09

From version 1.1 >
edited by superadmin
on 2021/09/09 16:24
To version < 2.1
edited by Scott Gagan
on 2024/04/16 21:09
Change comment: Install extension [org.xwiki.platform:xwiki-platform-filter-ui/15.5]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.superadmin
1 +XWiki.scottg
Content
... ... @@ -1,5 +3,3 @@
1 -{{warning}}Filter module is still young and experimental and while exporting should be safe enough, importing can be more risky for the current instance.{{/warning}}
2 -
3 3  {{include reference="FilterStreamDescriptorForm"/}}
4 4  
5 5  {{velocity output="true"}}
... ... @@ -39,6 +39,7 @@
39 39  
40 40  {{velocity}}
41 41  #if ($request.convert)
40 + #if ($services.security.authorization.hasAccess('programming', $xcontext.userReference, $doc.documentReference))
42 42   #if ($targetStandardOutput)
43 43   $response.setContentType('application/octet-stream')
44 44   $response.setHeader('Content-Disposition', 'attachment; filename=target');
... ... @@ -69,6 +69,9 @@
69 69   #end
70 70   #end
71 71   #end
71 + #else
72 + {{error}}You are not allowed to start a conversion.{{/error}}
73 + #end
72 72  #end
73 73  {{/velocity}}
74 74  
... ... @@ -129,7 +129,11 @@
129 129   </fieldset>
130 130  
131 131   <p>
132 - <input class="button" type="submit" name="convert" value="Convert"/>
134 + #if ($services.security.authorization.hasAccess('programming', $xcontext.userReference, $doc.documentReference))
135 + <input class="button" type="submit" name="convert" value="Convert"/>
136 + #else
137 + <input class="button" type="submit" name="convert" value="Convert" disabled title="You are not allowed to start a conversion."/>
138 + #end
133 133   </p>
134 134  </div>
135 135  </form>
iSymphony