Project

General

Profile

Bug #2102

Only the owner can delete the work file + solution

Added by Andre Boivin almost 9 years ago. Updated over 8 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
02/10/2010
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Only the owner can delete the work file
Near line 786 in work.php
Modify the condition to:
if (api_is_allowed_to_edit(null,true)|| (Database :: num_rows($author_qry) 1 AND api_get_course_setting('student_delete_own_publication') 1 ) ) {

History

#1

Updated by Yannick Warnier over 8 years ago

  • Status changed from New to Bug resolved
  • Assignee set to Andre Boivin
  • Target version set to 1.8.8 stable
  • % Done changed from 0 to 100

Thanks for the patch. Apparently this has been implemented inside the code (although in the opposite conditional order).
André, would you like a developer (commit) access to 1.8? You've been contributing regularly and accurately to the project for some time now, and we'd love to say we got a Canadian contributor around...

#2

Updated by Andre Boivin over 8 years ago

Merci, ça pourrait m'être parfois utile.

André

Also available in: Atom PDF