Further Drupal 10 compatibility fixes

Created on 29 January 2024, almost 2 years ago
Updated 1 May 2024, over 1 year ago

Problem/Motivation

An error appears when updating to a version 1.1.0-beta1:

The 'core_version_requirement' constraint (^9.4 || ^10) requires the 'core' key not be set in modules/contrib/moodle_rest/modules/moodle_rest_course/moodle_rest_course.info.yml

There are also entity queries in moodle_rest_user module that don't specify access checks.

Steps to reproduce

Update version of the module to 1.1.0-beta1

Proposed resolution

  • Remove "core: 8.x" from moodle_rest_course.info.yml
  • Remove "core: 8.x" from moodle_rest_migrate.info.yml
  • Explicitly check access in Drupal\moodle_rest_user\Controller\CourseController
  • Explicitly skip access checks in Drupal\moodle_rest_user\UserBatchHelper
🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇷🇺Russia v_kron

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024