Skip to content

Enforce access checks when listing global FilterCodes tags - #1

Open
VOOM108 wants to merge 1 commit into
eLearning-TUDarmstadt:masterfrom
108design:codex/restrict-global-filtercodes
Open

VOOM108 wants to merge 1 commit into
eLearning-TUDarmstadt:masterfrom
108design:codex/restrict-global-filtercodes

Conversation

@VOOM108

@VOOM108 VOOM108 commented Nov 12, 2026

Copy link
Copy Markdown

The global tag picker reads tag names from an AJAX function. Enforce the declared tiny/filtercodes:get_customcontent capability in the system context, where the global tags are configured. Return only the IDs and names used by the picker.

Tested on Moodle 5.3 with PHP 8.3 and MariaDB. A permitted account received the tag metadata, an account without the capability was denied, and the TinyMCE insert and submit flow preserved a working FilterCodes tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant