Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
d6dc0b33
Commit
d6dc0b33
authored
Apr 25, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix condition.
parent
09293477
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Security/ERP5BearerExtractionPlugin.py
product/ERP5Security/ERP5BearerExtractionPlugin.py
+2
-2
No files found.
product/ERP5Security/ERP5BearerExtractionPlugin.py
View file @
d6dc0b33
...
...
@@ -125,12 +125,12 @@ class ERP5BearerExtractionPlugin(BasePlugin):
token_document
=
self
.
portal_catalog
.
getResultValue
(
portal_type
=
self
.
token_portal_type
,
reference
=
token
,
query
=
SimpleQuery
(
comparison_operator
=
'
<
='
,
expiration_date
=
now
),
query
=
SimpleQuery
(
comparison_operator
=
'
>
='
,
expiration_date
=
now
),
validation_state
=
'validated'
)
if
token_document
is
not
None
:
if
token_document
.
getReference
()
==
token
and
\
token_document
.
getExpirationDate
()
<
=
now
and
\
token_document
.
getExpirationDate
()
>
=
now
and
\
token_document
.
getValidationState
()
==
'validated'
and
\
token_document
.
getDestinationReference
()
is
not
None
:
creds
[
'external_login'
]
=
\
...
...
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