mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-15402: fixes for tabs.php - now display tab repository only for the current user, + add some context security
This commit is contained in:
parent
4cd7c8b025
commit
6c91ce49ff
3 changed files with 7 additions and 5 deletions
|
@ -45,6 +45,9 @@ else {
|
|||
//is the user looking at its own repository instances
|
||||
if ($USER->id != $context->instanceid){
|
||||
print_error('notyourinstances', 'repository');
|
||||
}
|
||||
if ($context->contextlevel != CONTEXT_USER){
|
||||
print_error('wrongcontext', 'repository');
|
||||
}
|
||||
$user = $USER;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue