mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Now maxeditingtime for entries work againt timecreated instead of timemodified.
Thanks skodak! Bug 1822 (http://moodle.org/bugs/bug.php?op=show&bugid=1822) Merged from MOODLE_14_STABLE
This commit is contained in:
parent
0083049b21
commit
516c7276e5
2 changed files with 2 additions and 2 deletions
|
@ -252,7 +252,7 @@ print_header_simple(strip_tags("$glossary->name"), "",
|
|||
<A HREF=\"view.php?id=$cm->id\">$glossary->name</A> -> $stredit", "",
|
||||
"", true, "", navmenu($course, $cm));
|
||||
|
||||
$ineditperiod = ((time() - $newentry->timemodified < $CFG->maxeditingtime) || $glossary->editalways);
|
||||
$ineditperiod = ((time() - $newentry->timecreated < $CFG->maxeditingtime) || $glossary->editalways);
|
||||
if ( (!$ineditperiod || $USER->id != $newentry->userid) and !isteacher($course->id) and $e) {
|
||||
if ( $USER->id != $newentry->userid ) {
|
||||
error("You can't edit other people's entries!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue