Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
205b5b70
Commit
205b5b70
authored
Nov 04, 2003
by
Lennart Regebro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #391: Cut and paste now requires delete permissions.
parent
9c75b0c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
doc/CHANGES.txt
doc/CHANGES.txt
+1
-0
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+4
-2
lib/python/OFS/dtml/main.dtml
lib/python/OFS/dtml/main.dtml
+7
-5
No files found.
doc/CHANGES.txt
View file @
205b5b70
...
...
@@ -29,6 +29,7 @@ Zope Changes
(such as storages, databases, or logging handlers) to be used.
Bugs fixed
- Collector #391: Cut and paste now requires delete permissions.
- Collector #331: Referenses to URL in manage_tabs was changed
to REQUEST.URL to prevent accidental overriding.
...
...
lib/python/OFS/CopySupport.py
View file @
205b5b70
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__doc__
=
"""Copy interface"""
__version__
=
'$Revision: 1.8
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
7
$'
[
11
:
-
2
]
import
sys
,
Globals
,
Moniker
,
tempfile
,
ExtensionClass
from
marshal
import
loads
,
dumps
...
...
@@ -32,8 +32,10 @@ class CopyContainer(ExtensionClass.Base):
__ac_permissions__
=
(
(
'View management screens'
,
(
'manage_c
utObjects'
,
'manage_c
opyObjects'
,
'manage_pasteObjects'
,
(
'manage_copyObjects'
,
'manage_pasteObjects'
,
'manage_renameForm'
,
'manage_renameObject'
,
'manage_renameObjects'
,)),
(
'Delete objects'
,
(
'manage_cutObjects'
)),
)
...
...
lib/python/OFS/dtml/main.dtml
View file @
205b5b70
...
...
@@ -224,8 +224,10 @@ function toggleSelect() {
<dtml-unless dontAllowCopyAndPaste>
<input class="form-element" type="submit" name="manage_renameForm:method"
value="Rename" />
<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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment