[Zope-Checkins] CVS: Zope/lib/python/OFS/dtml - main.dtml:1.20.2.1
Lennart Regebro
cvs-admin at zope.org
Tue Nov 4 12:55:56 EST 2003
Update of /cvs-repository/Zope/lib/python/OFS/dtml
In directory cvs.zope.org:/tmp/cvs-serv25203/lib/python/OFS/dtml
Modified Files:
Tag: Zope-2_7-branch
main.dtml
Log Message:
Collector #391: Cut and paste now requires delete permissions.
=== Zope/lib/python/OFS/dtml/main.dtml 1.20 => 1.20.2.1 ===
--- Zope/lib/python/OFS/dtml/main.dtml:1.20 Thu Jun 12 07:19:40 2003
+++ Zope/lib/python/OFS/dtml/main.dtml Tue Nov 4 12:55:55 2003
@@ -224,17 +224,19 @@
<dtml-unless dontAllowCopyAndPaste>
<input class="form-element" type="submit" name="manage_renameForm:method"
value="Rename" />
- <input class="form-element" type="submit" name="manage_cutObjects:method"
- value="Cut" />
- <input class="form-element" type="submit" name="manage_copyObjects:method"
+ <dtml-if "_.SecurityCheckPermission('Delete objects',this())">
+ <input class="form-element" type="submit" name="manage_cutObjects:method"
+ value="Cut" />
+ </dtml-if>
+ <input class="form-element" type="submit" name="manage_copyObjects:method"
value="Copy" />
<dtml-if cb_dataValid>
- <input class="form-element" type="submit" name="manage_pasteObjects:method"
+ <input class="form-element" type="submit" name="manage_pasteObjects:method"
value="Paste" />
</dtml-if>
</dtml-unless>
<dtml-if "_.SecurityCheckPermission('Delete objects',this())">
- <input class="form-element" type="submit" name="manage_delObjects:method"
+ <input class="form-element" type="submit" name="manage_delObjects:method"
value="Delete" />
</dtml-if>
<dtml-if "_.SecurityCheckPermission('Import/Export objects', this())">
More information about the Zope-Checkins
mailing list