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
af1c6c76
Commit
af1c6c76
authored
Mar 09, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
37843ed0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+11
-3
lib/python/DocumentTemplate/DT_String.py
lib/python/DocumentTemplate/DT_String.py
+3
-9
No files found.
lib/python/AccessControl/User.py
View file @
af1c6c76
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Access control package"""
__version__
=
'$Revision: 1.9
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.9
7
$'
[
11
:
-
2
]
import
Globals
,
App
.
Undo
,
socket
,
regex
from
Globals
import
HTMLFile
,
MessageDialog
,
Persistent
,
PersistentMapping
...
...
@@ -712,8 +712,16 @@ def manage_addUserFolder(self,dtself=None,REQUEST=None,**ignored):
if
REQUEST
:
return
self
.
manage_main
(
self
,
REQUEST
,
update_menu
=
1
)
# This bit performs watermark verification on authenticated users.
from
ZPublisher.BaseRequest
import
_marker
def
verify_watermark
(
auth_user
):
if
not
hasattr
(
auth_user
,
'__marker__'
)
or
\
auth_user
.
__marker__
is
not
_marker
:
raise
'Unauthorized'
,
(
'You are not authorized to access this resource.'
)
def
rolejoin
(
roles
,
other
):
...
...
lib/python/DocumentTemplate/DT_String.py
View file @
af1c6c76
...
...
@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
"$Id: DT_String.py,v 1.3
2 2000/03/09 19:15:39
brian Exp $"
"$Id: DT_String.py,v 1.3
3 2000/03/09 19:22:33
brian Exp $"
from
string
import
split
,
strip
import
regex
,
ts_regex
...
...
@@ -560,15 +560,9 @@ class File(FileMixin, String):
# are running with Zope before installing the watermark function.
if hasattr(__builtins__, 'INSTANCE_HOME'):
from ZPublisher.BaseRequest import _marker
def verify_watermark(auth_user):
if not hasattr(auth_user, '__marker__') or
\
auth_user.__marker__ is not _marker:
raise 'Unauthorized', (
'You are not authorized to access this resource.'
)
from AccessControl.User import verify_watermark
else:
def verify_watermark(auth_user):
...
...
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