Last modified by Yana Oksner on 2025/10/02 15:35

From version 2.1
edited by Yana Oksner
on 2023/11/30 14:52
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros/1.14.0]
To version 3.1
edited by Yana Oksner
on 2024/02/23 13:49
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros/1.15.0]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -46,8 +46,6 @@
46 46  #end
47 47  {{/velocity}}
48 48  
49 -{{include reference="Licenses.Code.VelocityMacros"/}}
50 -
51 51  {{velocity}}
52 52  ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right
53 53  ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that
... ... @@ -55,8 +55,6 @@
55 55  #if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))
56 56   #executeMacro
57 57  #else
58 - {{error}}
59 - #getMissingLicenseMessage('proMacros.extension.name')
60 - {{/error}}
56 + {{missingLicenseMessage extensionName="proMacros.extension.name"/}}
61 61  #end
62 62  {{/velocity}}