Store and retrieve avatars in/from LDAP exclusively
Some checks failed
continuous-integration/drone/push Build is failing

No need to keep them in two places at the same time. We can fetch them
from LDAP whenever we want to do something with them.
This commit is contained in:
Râu Cao
2023-09-06 20:42:26 +02:00
parent 50c63d5c38
commit d5ab532947
8 changed files with 55 additions and 25 deletions

View File

@@ -20,6 +20,8 @@ class Admin::UsersController < Admin::BaseController
end
@services_enabled = @user.services_enabled
@avatar = LdapManager::FetchAvatar.call(cn: @user.cn, ou: @user.ou)
end
private