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)
committerMarina Glancy <marina@moodle.com>
Fri, 6 Jul 2012 01:44:07 +0000 (09:44 +0800)
commit1bd017474365cd13efa13753c6bf6825ebbc29dc
treeadd011abda3e00894fc5ebfa12944a45900d713f
parent2cbdaa77ea1d9467e43c88a910420fbfe41a6588
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