Hide Enrollment Options that do not apply to user

Hide Enrollment Options that do not apply to user

by Emma Richardson -
Number of replies: 2
Documentation writers இன் படம் Particularly helpful Moodlers இன் படம் Plugin developers இன் படம்
Has anyone found a way to hid the enrollment options that a user is not eligible for?
For example, currently, I have a self enrollment option that is limited to a cohort.  If a user is not in the cohort, there is a message that says they have to be in the cohort - I would prefer for the enrollment option to simply not show on the enrollment page as it clutters it up, especially if you have two or three different enrollment options...
Average of ratings:Useful (1)
In reply to Emma Richardson

Re: Hide Enrollment Options that do not apply to user

by Renaat Debleu -
Core developers இன் படம் Particularly helpful Moodlers இன் படம் Plugin developers இன் படம்
Did you try to change the cohortnonmemberinfo string in the enrol_self plugin to '' or '<p hidden>Only members of cohort \'{$a}\' can self-enrol.</p>'?