× Joomdle 1.0 Installation

how to remove payment enrol in moodle enrolment method

4 months 1 week ago
saman
Posts: 243
More
Topic Author
how to remove payment enrol in moodle enrolment method #1
hi.
i add payment joomdle enrol method to some course but can not remove that.only can hidden. is it bug?
4 months 1 week ago
Antonio Durán
Posts: 7020
More
how to remove payment enrol in moodle enrolment method #2
Thanks for the bug report.
You can fix it by adding this code to moodle/enrol/joomdle/lib.php
    public function can_delete_instance($instance) {
        $context = context_course::instance($instance->courseid);
        return has_capability('enrol/joomdle:manage', $context);
    }