diff --git a/main/document/create_document.php b/main/document/create_document.php index 74ec09657b..5bd0f3b941 100644 --- a/main/document/create_document.php +++ b/main/document/create_document.php @@ -1,5 +1,5 @@ "./document.php?curdirpath=".urlencode($_GE if (!$is_allowed_in_course) api_not_allowed(); -$is_allowedToEdit = $is_courseAdmin; +$is_allowedToEdit = api_is_allowed_to_edit(); if (!($is_allowedToEdit || $_SESSION['group_member_with_upload_rights'])) { api_not_allowed();