Unverified Commit 4d4e7fde authored by Peter Stanko's avatar Peter Stanko
Browse files

Use the uco from the ldap only

parent fb0b00f7
......@@ -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):
Supports Markdown
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