por Peter Diedrichs.
When a course is copied via the API, when using an external system to create new courses, any alterations done to permissions in activities and resources in the original course are set back to default in the new course.
Tracker report with full description https://tracker.moodle.org/browse/MDL-76538
(Moodle 3.11.11)