Merge branch 'MDL-47657-master' of git://github.com/gurgus/moodle

This commit is contained in:
Dan Poltawski
2014-10-16 10:52:40 +01:00
+1 -1
View File
@@ -40,7 +40,7 @@ if ($id) { // if entry is specified
$ineditperiod = ((time() - $entry->timecreated < $CFG->maxeditingtime) || $glossary->editalways);
if (!has_capability('mod/glossary:manageentries', $context) and !($entry->userid == $USER->id and ($ineditperiod and has_capability('mod/glossary:write', $context)))) {
if ($USER->id != $fromdb->userid) {
if ($USER->id != $entry->userid) {
print_error('errcannoteditothers', 'glossary', "view.php?id=$cm->id&amp;mode=entry&amp;hook=$id");
} elseif (!$ineditperiod) {
print_error('erredittimeexpired', 'glossary', "view.php?id=$cm->id&amp;mode=entry&amp;hook=$id");