Commit 8316e5f9 authored by Claudiu Cristea's avatar Claudiu Cristea
Browse files

Issue #3304835 by claudiu.cristea, zarabatana: Drupal 10 compatibility fixes

parent 77cee826
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: CAS Attributes
description: 'Provides tokens for CAS attributes and an interface for token replacement in user account fields as well as advanced role mapping capability.'
type: module
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9 || ^10
configure: cas_attributes.settings
dependencies:
  - cas:cas
+1 −1
Original line number Diff line number Diff line
@@ -10,6 +10,6 @@
    },
    "license": "GPL-2.0+",
    "require": {
        "drupal/cas": "^1.7 || ^2.0@beta"
        "drupal/cas": "^2.1"
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ class CasAttributesSubscriber implements EventSubscriberInterface {
      $roleMappingResults = $this->doRoleMapCheck($event->getCasPropertyBag()->getAttributes());

      if (empty($roleMappingResults['add']) && $this->settings->get('role.deny_registration_no_match')) {
        $event->setAllowAutomaticRegistration(FALSE);
        $event->cancelAutomaticRegistration();
      }
      else {
        // Add/remove roles from the user.
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ class CasAttributesSubscriberTest extends UnitTestCase {
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();

    $this->account = $this->createMock('\Drupal\user\UserInterface');