Changes for page Contributors

Last modified by Yana Oksner on 2026/01/08 11:01

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

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -172,6 +172,8 @@
172 172  #end
173 173  {{/velocity}}
174 174  
175 +{{include reference="Licenses.Code.VelocityMacros"/}}
176 +
175 175  {{velocity}}
176 176  ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right
177 177  ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that
... ... @@ -179,5 +179,7 @@
179 179  #if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))
180 180   #executeMacro
181 181  #else
182 - {{missingLicenseMessage extensionName="proMacros.extension.name"/}}
184 + {{error}}
185 + #getMissingLicenseMessage('proMacros.extension.name')
186 + {{/error}}
183 183  #end