× Joomdle 1.0 Installation

how to remove payment enrol in moodle enrolment method

3 weeks 1 day ago
saman سامان
Posts: 240
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?
3 weeks 6 hours ago
Antonio Durán
Posts: 6945
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);
    }
Cron Job Starts