mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
relacing deprecated functions with capability checks
This commit is contained in:
parent
0dde27bb52
commit
9ce384ba1e
10 changed files with 17 additions and 20 deletions
|
@ -413,7 +413,7 @@
|
|||
helpbutton("metacourse", get_string("metacourse"));?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if (isadmin() && ((!empty($course->requested) && $CFG->restrictmodulesfor == 'requested') || $CFG->restrictmodulesfor == 'all')) { ?>
|
||||
<?php if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID)) && ((!empty($course->requested) && $CFG->restrictmodulesfor == 'requested') || $CFG->restrictmodulesfor == 'all')) { ?>
|
||||
<tr valign="top">
|
||||
<td align="right"><?php print_string("restrictmodules") ?>:</td>
|
||||
<td valign="top"><table cellpadding="0" border="0"><tr valign="top"><td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue