Author: cvrabie Date: 2008-02-14 14:33:35 +0100 (Thu, 14 Feb 2008) New Revision: 7727
Modified: xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/contentview.vm Log: CURRIKI-1671 Only group members can edit a document Modified: xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/contentview.vm =================================================================== --- xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/contentview.vm 2008-02-14 10:57:53 UTC (rev 7726) +++ xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/contentview.vm 2008-02-14 13:33:35 UTC (rev 7727) @@ -8,9 +8,14 @@ #groupinit() #groupsheader("documentation") - #set($editURL = $s.homeURL + "Documentation") - #set($editURL = $editURL + "?action=editdoc&pagename=") - #set($editURL = $editURL + $doc.getFullName()) + #set($editURL = "") + #set($editTxt = "") + #if( $sm.isMember( $s.spaceName, $context.user ) ) + #set($editURL = $s.homeURL + "Documentation") + #set($editURL = $editURL + "?action=editdoc&pagename=") + #set($editURL = $editURL + $doc.getFullName()) + #set($editTxt = ${msg.groups_documentation_documents_edit}) + #end #set($tit = $doc.title) #if($request.vers) @@ -19,7 +24,7 @@ #set($tit = $tit + " )" ) #end - #begingroupsection("${tit}" "${msg.groups_documentation_documents_edit}" "$editURL" "blue" true) + #begingroupsection("${tit}" "${editTxt}" "${editURL}" "blue" true) <span class="date"> ${msg.groups_documentation_documents_modified} $xwiki.getUserName($doc.author, true) ${msg.groups_documentation_documents_on} $xwiki.formatDate($doc.contentUpdateDate, $msg.get("mycurriki.dateFormat"))</span> <br /> _______________________________________________ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications