Skip to content

Commit

Permalink
NOMDL, added capability check
Browse files Browse the repository at this point in the history
Dongsheng Cai committed Oct 21, 2010

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b50bea4 commit 37a81e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/files.php
Original file line number Diff line number Diff line change
@@ -29,9 +29,9 @@
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');

0 comments on commit 37a81e1

Please sign in to comment.