Minor - flint fixes

pull/2729/head
Julio 8 years ago
parent 300cbea74e
commit cbf3bb6ba3
  1. 2
      main/inc/ajax/work.ajax.php
  2. 2
      main/work/upload.php

@ -22,7 +22,7 @@ switch ($action) {
$onlyOnePublication = api_get_configuration_value('allow_only_one_student_publication_per_user');
if ($onlyOnePublication) {
$count = get_work_count_by_student($userId, $workId);
$count = get_work_count_by_student($userId, $workId);
if ($count >= 1) {
exit;
}

@ -47,7 +47,7 @@ $student_can_edit_in_session = api_is_allowed_to_session_edit(false, true);
$onlyOnePublication = api_get_configuration_value('allow_only_one_student_publication_per_user');
if ($onlyOnePublication) {
$count = get_work_count_by_student($user_id, $work_id);
$count = get_work_count_by_student($user_id, $work_id);
if ($count >= 1) {
api_not_allowed(true);

Loading…
Cancel
Save