Зміни в документі Filter streams
Остання зміна 2022/08/30 01:35 автором Павло Заїченко
Від версії 1.1
редаговано Павло Заїченко
дата 2021/10/18 11:42
дата 2021/10/18 11:42
Змінити коментар:
Install extension [org.xwiki.platform:xwiki-platform-filter-ui/13.6]
До версії 2.1
редаговано Павло Заїченко
дата 2022/08/30 01:35
дата 2022/08/30 01:35
Змінити коментар:
Install extension [org.xwiki.platform:xwiki-platform-filter-ui/14.7]
Підсумок
-
Властивості сторінки (1 змінено, 0 додано, 0 видалено)
Подробиці
- Властивості сторінки
-
- Вміст
-
... ... @@ -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>