Skip to content
Snippets Groups Projects
Commit 89a0245a authored by tmortagne's avatar tmortagne
Browse files

XWIKI-7691: A user without edit right on the page should not see the button to...

XWIKI-7691: A user without edit right on the page should not see the button to update the extension in XR
parent 4da6552d
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,8 @@
<customClass/>
<contentAuthor>xwiki:XWiki.Admin</contentAuthor>
<creationDate>1312816151000</creationDate>
<date>1332336745000</date>
<contentUpdateDate>1332336745000</contentUpdateDate>
<date>1333640220000</date>
<contentUpdateDate>1333640220000</contentUpdateDate>
<version>1.1</version>
<title>#if($doc.getObject('ExtensionCode.ExtensionClass'))$doc.getObject('ExtensionCode.ExtensionClass').getProperty('name').value#{else}Extension sheet#end</title>
<template/>
......@@ -202,11 +202,13 @@
## Viewing
##
{{box cssClass="floatinginfobox"}}
#set($proxyExtensionObject = $doc.getObject('ExtensionCode.ExtensionProxyClass'))
#if ($proxyExtensionObject)
#set($repositoryId = $proxyExtensionObject.getProperty('repositoryId').value)
#set($repositoryURI = $proxyExtensionObject.getProperty('repositoryURI').value)
{{info}}Extension imported from repository [[$repositoryId&gt;&gt;$repositoryURI]]{{/info}} #if ($hasEdit)[[image:icon:arrow_refresh&gt;&gt;ExtensionCode.ImportExtension||title="Update extension" queryString="importExtension=true&amp;extensionId=$escapetool.url($id)&amp;repositoryId=$escapetool.url($repositoryId)"]]#end
#if ($hasEdit)
#set($proxyExtensionObject = $doc.getObject('ExtensionCode.ExtensionProxyClass'))
#if ($proxyExtensionObject)
#set($repositoryId = $proxyExtensionObject.getProperty('repositoryId').value)
#set($repositoryURI = $proxyExtensionObject.getProperty('repositoryURI').value)
{{info}}Extension imported from repository [[$repositoryId&gt;&gt;$repositoryURI]]{{/info}} #if ($hasEdit)[[image:icon:arrow_refresh&gt;&gt;ExtensionCode.ImportExtension||title="Update extension" queryString="importExtension=true&amp;extensionId=$escapetool.url($id)&amp;repositoryId=$escapetool.url($repositoryId)"]]#end
#end
#end
(% class="extensionInfo" %)
......
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