Added support for LDAP user photo profile
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Kanboard\ServiceProvider;
|
||||
|
||||
use Kanboard\Subscriber\LdapUserPhotoSubscriber;
|
||||
use Pimple\Container;
|
||||
use Pimple\ServiceProviderInterface;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
@@ -28,6 +29,10 @@ class EventDispatcherProvider implements ServiceProviderInterface
|
||||
$container['dispatcher']->addSubscriber(new TransitionSubscriber($container));
|
||||
$container['dispatcher']->addSubscriber(new RecurringTaskSubscriber($container));
|
||||
|
||||
if (LDAP_AUTH && LDAP_USER_ATTRIBUTE_PHOTO !== '') {
|
||||
$container['dispatcher']->addSubscriber(new LdapUserPhotoSubscriber($container));
|
||||
}
|
||||
|
||||
return $container;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user