Commit 97b29ffa authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Security: make login_list empty for SUPER_USER who has no login.

parent 18295e08
...@@ -269,13 +269,13 @@ class ERP5UserManager(BasePlugin): ...@@ -269,13 +269,13 @@ class ERP5UserManager(BasePlugin):
# Extra properties, specific to ERP5 # Extra properties, specific to ERP5
'path': user['path'], 'path': user['path'],
'login_list': [ 'login_list': user['path'] and [
{ {
'reference': user['reference'], 'reference': user['reference'],
'path': user['path'], 'path': user['path'],
'uid': user['uid'], 'uid': user['uid'],
} }
], ] or [],
} }
for user in user_list for user in user_list
]) ])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment