Use activity / lesson permissions in the LMS reference field widget

Created on 9 June 2025, about 1 month ago

Problem/Motivation

Currently users with no lesson create / edit permissions can still see course referenced lessons, reference existing lessons and see edit buttons even if pressing will result in an error.

Steps to reproduce

Proposed resolution

Check what is the current user permitted to do and display buttons accordingly. Deny field access if the user has no permissions (create or use). Apply the same logic for lessons and activities.

🐛 Bug report
Status

Active

Version

1.0

Component

Courses and lessons

Created by

🇵🇱Poland Graber

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