Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Boxiang Sun
erp5
Commits
cd42e66d
Commit
cd42e66d
authored
11 years ago
by
Kazuhiko Shiozaki
Browse files
Options
Download
Email Patches
Plain Diff
reference query should be definitely exact match.
otherwise login like 'ASTAIRE AND ROGERS' does not work.
parent
d3805591
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
product/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/portal_components/extension.erp5.StandardSecurity.py
...Item/portal_components/extension.erp5.StandardSecurity.py
+2
-1
product/ERP5/bootstrap/erp5_core/bt/revision
product/ERP5/bootstrap/erp5_core/bt/revision
+1
-1
No files found.
product/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/portal_components/extension.erp5.StandardSecurity.py
View file @
cd42e66d
...
...
@@ -26,6 +26,7 @@
##############################################################################
from
Products.ERP5Security.ERP5GroupManager
import
ConsistencyError
from
Products.ZSQLCatalog.SQLCatalog
import
SimpleQuery
def
getSecurityCategoryFromAssignment
(
self
,
base_category_list
,
user_name
,
object
,
portal_type
,
child_category_list
=
[]):
...
...
@@ -53,7 +54,7 @@ def getSecurityCategoryFromAssignment(self, base_category_list, user_name, objec
category_list
=
[]
person_object_list
=
self
.
portal_catalog
.
unrestrictedSearchResults
(
portal_type
=
'Person'
,
reference
=
user_name
)
query
=
SimpleQuery
(
reference
=
user_name
),
portal_type
=
'Person'
)
if
len
(
person_object_list
)
!=
1
:
if
len
(
person_object_list
)
>
1
:
...
...
This diff is collapsed.
Click to expand it.
product/ERP5/bootstrap/erp5_core/bt/revision
View file @
cd42e66d
41141
\ No newline at end of file
41142
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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