mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-23302 Credit to Aparup. New cap moodle/user:manageownfiles to control private user files area
This commit is contained in:
parent
a2580005a5
commit
e4f413b4b3
4 changed files with 19 additions and 4 deletions
|
@ -31,9 +31,9 @@ require_login();
|
|||
if (isguestuser()) {
|
||||
die();
|
||||
}
|
||||
//TODO: add capability check here!
|
||||
|
||||
$context = get_context_instance(CONTEXT_USER, $USER->id);
|
||||
require_capability('moodle/user:manageownfiles', $context);
|
||||
|
||||
$title = get_string('myfiles');
|
||||
$struser = get_string('user');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue