[Zope-Checkins] CVS: Zope/lib/python/OFS/dtml - main.dtml:1.20.22.1
Lennart Regebro
cvs-admin at zope.org
Tue Nov 4 12:40:57 EST 2003
Update of /cvs-repository/Zope/lib/python/OFS/dtml
In directory cvs.zope.org:/tmp/cvs-serv22593/lib/python/OFS/dtml
Modified Files:
Tag: regebro-property_title-branch
main.dtml
Log Message:
Collector #391. Now you can't cut unless you can delete.
You still can copy though. :)
=== Zope/lib/python/OFS/dtml/main.dtml 1.20 => 1.20.22.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:40:56 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