Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
4d4e7fde
Unverified
Commit
4d4e7fde
authored
Sep 14, 2018
by
Peter Stanko
Browse files
Use the uco from the ldap only
parent
fb0b00f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
portal/service/users.py
View file @
4d4e7fde
...
...
@@ -74,7 +74,7 @@ class UserService:
if
(
data
.
get
(
"is_admin"
)
is
not
None
)
and
full
:
self
.
user
.
is_admin
=
data
[
'is_admin'
]
if
self
.
ldap
.
is_enabled
:
data
[
'uco'
]
=
data
.
get
(
'uco'
)
or
self
.
ldap
.
extract_uco
()
data
[
'uco'
]
=
self
.
ldap
.
extract_uco
()
return
general
.
update_entity
(
self
.
user
,
data
,
allowed
=
[
'name'
,
'email'
,
'uco'
])
def
create_user
(
self
,
**
data
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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