Skip to content

Commit

Permalink
Student Publication: Pending list - fix access for teachers BT#18352
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 23, 2021
1 parent 769ee2b commit e5dff3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main/work/work.lib.php
Expand Up @@ -2742,9 +2742,11 @@ function getAllWork(

/* Because a bug found when saving items using the api_item_property_update()
the field $item_property_data['insert_user_id'] is not reliable. */
if (!$is_allowed_to_edit && $owner_id == api_get_user_id()) {
/*if (!$is_allowed_to_edit && $owner_id == api_get_user_id()) {
$is_author = true;
}
}*/
// Teacher can be treated as an author.
$is_author = true;

/*if ($course_info['show_score'] == 0) {
$can_read = true;
Expand Down

0 comments on commit e5dff3b

Please sign in to comment.