Fixing delete condition in works see BT#1673

skala
Julio Montoya 14 years ago
parent 7d61083b0d
commit 5d14d5ec73
  1. 2
      main/work/work.php

@ -784,7 +784,7 @@ else {
$author_qry = Database::query($author_sql);
if (Database :: num_rows($author_qry) == 1 AND api_get_course_setting('student_delete_own_publication') == 1 || api_is_allowed_to_edit(null,true)) {
if ((Database :: num_rows($author_qry) == 1 AND api_get_course_setting('student_delete_own_publication') == 1) || api_is_allowed_to_edit(null,true)) {
//we found the current user is the author
$queryString1 = "SELECT url FROM " . $work_table . " WHERE id = '$delete'";
$result1 = Database::query($queryString1);

Loading…
Cancel
Save