From a82d7365423c4d25db8c95896d13eb24a5583a4c Mon Sep 17 00:00:00 2001 From: Hubert Borderiou Date: Thu, 7 Feb 2013 17:00:24 +0100 Subject: [PATCH] Replace api_is_allowed_to_edit() with api_is_allowed_to_edit(true, true, true) - ref #5947 --- main/work/download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/work/download.php b/main/work/download.php index 95077173ae..f8b8e3c247 100644 --- a/main/work/download.php +++ b/main/work/download.php @@ -71,7 +71,7 @@ if (!empty($course_info['real_id'])) { $work_is_visible = ($item_info['visibility'] == 1 && $row['accepted'] == 1); $doc_visible_for_all = ($course_info['show_score'] == 1); - $is_editor = api_is_allowed_to_edit(); + $is_editor = api_is_allowed_to_edit(true,true,true); $student_is_owner_of_work = ($row['user_id'] == api_get_user_id()); if ($is_editor