The restrictions mention don't appear on the page when the onetopic format is used. This issue i due to a depracation which is mentionned at this link : https://tracker.moodle.org/browse/MDL-74160
The current tag use in the mustache file "\course\format\onetopic\templates\local\content\section\content.mustache" is :
{{#availability}}
{{$ format_onetopic/courseformat/content/cm/availabilityinline }}
{{> format_onetopic/courseformat/content/cm/availabilityinline }}
{{/ format_onetopic/courseformat/content/cm/availabilityinline }}
{{/availability}}
So, to correct this issue change the tag with :
{{#availability}}
{{$ core_courseformat/local/content/section/availability }}
{{> core_courseformat/local/content/section/availability }}
{{/ core_courseformat/local/content/section/availability }}
{{/availability}}
The restrictions mention don't appear on the page when the onetopic format is used. This issue i due to a depracation which is mentionned at this link : https://tracker.moodle.org/browse/MDL-74160 The current tag use in the mustache file "\course\format\onetopic\templates\local\content\section\content.mustache" is : {{#availability}} {{$ format_onetopic/courseformat/content/cm/availabilityinline }} {{> format_onetopic/courseformat/content/cm/availabilityinline }} {{/ format_onetopic/courseformat/content/cm/availabilityinline }} {{/availability}}
So, to correct this issue change the tag with : {{#availability}} {{$ core_courseformat/local/content/section/availability }} {{> core_courseformat/local/content/section/availability }} {{/ core_courseformat/local/content/section/availability }} {{/availability}}