MDL-33950 check if source file is accessible in repository_ajax.php
authorMarina Glancy <marina@moodle.com>
Thu, 28 Jun 2012 03:50:17 +0000 (11:50 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 10 Jul 2012 06:57:35 +0000 (14:57 +0800)
commitdb8152585056317d5ec42b3e21b838d89c1ef9ad
tree529f49f7377c9b23787f41da250802c040f8ef63
parentb2e5a60773421119a87ced76a7aae443ba238db2
MDL-33950 check if source file is accessible in repository_ajax.php

- repository::copy_to_area() does not check access any more, and repository_recent::copy_to_area() is unnecessary
- added repository::file_is_accessible() that checks access to the picked file (regardless of accessibility of the file it is referencing to)
repository/lib.php
repository/recent/lib.php
repository/repository_ajax.php