mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +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
|
@ -120,8 +120,7 @@ $text_source_options = array(
|
|||
</td>
|
||||
<td align="left"><?PHP
|
||||
|
||||
|
||||
if (isadmin()) {
|
||||
if (has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
|
||||
$site = get_site();
|
||||
if ($course->id==$site->id) {
|
||||
$id = $site->id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue