Commit a0843e97 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Gerrit Code Review

Merge "Bug 1859355: Peers should not be able to delete other peer's assessment"

parents 7901afa8 8894df2c
......@@ -592,13 +592,13 @@ class ArtefactTypePeerassessment extends ArtefactType {
public static function build_html(&$data, $versioning=null) {
global $USER, $THEME;
$candelete = $data->canedit || $USER->get('admin');
$deletedmessage = array();
$authors = array();
$lastcomment = self::last_public_assessment($data->view);
$editableafter = time() - 60 * get_config_plugin('artefact', 'comment', 'commenteditabletime');
$signedoff = null;
foreach ($data->data as &$item) {
$candelete = ($data->canedit && ($item->author == $USER->get('id'))) || $USER->get('admin');
if ($signedoff === null) {
$view = new View($item->view);
$signedoff = self::is_signed_off($view);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment