Problem/Motivation

We had a similar problem before (https://www.drupal.org/project/social_course/issues/3260322), and after the changes that were made in that issue, we got another problem - any users on the platform had access to the course sections, accordingly, it was decided to roll back these changes.
So after rolling back the old changes, the old problem is back and course members are unable to access the course sections.

Steps to reproduce

  • Join the course
  • Click on section
  • Get an access denied

Proposed resolution

Change the check logic, i.e. check not by permission (since course sections do not have visibility, such as a topic or event), but by group membership.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rolki created an issue. See original summary.

navneet0693’s picture

Status: Active » Reviewed & tested by the community

ribel made their first commit to this issue’s fork.

  • ribel committed 67f7ffe on 4.1.x authored by rolki
    Issue #3310620 by rolki: Fix a problem with access to course sections...

  • ribel committed b2fb971 on 4.0.x authored by rolki
    Issue #3310620 by rolki: Fix a problem with access to course sections...
ribel’s picture

Version: 4.1.1 » 4.0.4
Status: Reviewed & tested by the community » Fixed

Merged and released in versions 4.0.4 and 4.1.2

rolki’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.