Added checking for read permission in MasterFileController.embed