Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
139
Merge Requests
139
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
745b2555
Commit
745b2555
authored
Nov 02, 2016
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Security.ERP5LoginUserManager: ignore Person without reference.
parent
8efdd9f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
product/ERP5Security/ERP5LoginUserManager.py
product/ERP5Security/ERP5LoginUserManager.py
+3
-1
No files found.
product/ERP5Security/ERP5LoginUserManager.py
View file @
745b2555
...
@@ -85,6 +85,8 @@ class ERP5LoginUserManager(BasePlugin):
...
@@ -85,6 +85,8 @@ class ERP5LoginUserManager(BasePlugin):
if
login_value
is
None
:
if
login_value
is
None
:
return
return
user_value
=
login_value
.
getParentValue
()
user_value
=
login_value
.
getParentValue
()
if
not
user_value
.
hasReference
():
return
if
user_value
.
getValidationState
()
==
'deleted'
:
if
user_value
.
getValidationState
()
==
'deleted'
:
return
return
now
=
DateTime
()
now
=
DateTime
()
...
@@ -238,7 +240,7 @@ class ERP5LoginUserManager(BasePlugin):
...
@@ -238,7 +240,7 @@ class ERP5LoginUserManager(BasePlugin):
for
login
in
login_dict
[
user
[
'uid'
]]
for
login
in
login_dict
[
user
[
'uid'
]]
],
],
}
}
for
user
in
user_list
if
login_dict
.
get
(
user
[
'uid'
],
[])
for
user
in
user_list
if
login_dict
.
get
(
user
[
'uid'
],
[])
and
user
[
'reference'
]
])
])
classImplements
(
ERP5LoginUserManager
,
IAuthenticationPlugin
,
IUserEnumerationPlugin
)
classImplements
(
ERP5LoginUserManager
,
IAuthenticationPlugin
,
IUserEnumerationPlugin
)
...
...
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