Commit b2860438 authored by oskar_calvo's avatar oskar_calvo Committed by Óskar Calvo
Browse files

Issue #3311787 by oskar_calvo: Error when someone try to login

parent b5dcde4e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use GuzzleHttp\Exception\RequestException;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Azure Active record connection class.
@@ -81,7 +82,7 @@ public static function create(ContainerInterface $container) {
   */
  public function loginUrl(): ?string {

    if (count($this->groupMap()) == 0) {
    if (count($this->DrupalRoles()) == 0) {
      return NULL;
    }