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
b65a3cae
Commit
b65a3cae
authored
Mar 15, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed stupid _v_ problem
parent
b4d798b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+3
-3
lib/python/ZPublisher/BaseRequest.py
lib/python/ZPublisher/BaseRequest.py
+2
-2
No files found.
lib/python/AccessControl/User.py
View file @
b65a3cae
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Access control package"""
__version__
=
'$Revision: 1.
99
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
100
$'
[
11
:
-
2
]
import
Globals
,
App
.
Undo
,
socket
,
regex
from
Globals
import
HTMLFile
,
MessageDialog
,
Persistent
,
PersistentMapping
...
...
@@ -715,8 +715,8 @@ def manage_addUserFolder(self,dtself=None,REQUEST=None,**ignored):
from
ZPublisher.BaseRequest
import
_marker
def
verify_watermark
(
auth_user
):
if
not
hasattr
(
auth_user
,
'__marker__'
)
or
\
auth_user
.
__marker__
is
not
_marker
:
if
not
hasattr
(
auth_user
,
'_
v_
_marker__'
)
or
\
auth_user
.
_
v_
_marker__
is
not
_marker
:
raise
'Unauthorized'
,
(
'You are not authorized to access this resource.'
)
...
...
lib/python/ZPublisher/BaseRequest.py
View file @
b65a3cae
...
...
@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
from
string
import
join
,
split
,
find
,
rfind
,
lower
,
upper
from
urllib
import
quote
...
...
@@ -454,7 +454,7 @@ class BaseRequest:
steps
=
join
(
steps
[:
-
i
],
'/'
)
if
user
is
not
None
:
# Try to set a watermark on the user object.
user
.
__marker__
=
_marker
user
.
_
v_
_marker__
=
_marker
request
[
'AUTHENTICATED_USER'
]
=
user
request
[
'AUTHENTICATION_PATH'
]
=
steps
...
...
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