mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
partially fixed - assignment intro always avaible even setting available date MDL-6131
This commit is contained in:
parent
cc08091300
commit
29889a2a45
2 changed files with 12 additions and 1 deletions
|
@ -21,7 +21,17 @@ class assignment_upload extends assignment_base {
|
|||
add_to_log($this->course->id, 'assignment', 'view', "view.php?id={$this->cm->id}", $this->assignment->id, $this->cm->id);
|
||||
|
||||
$this->view_header();
|
||||
$this->view_intro();
|
||||
|
||||
if ($this->assignment->timeavailable > time()
|
||||
and !has_capability('mod/assignment:grade', $this->context)) {
|
||||
//not open yet === no instructions
|
||||
print_simple_box_start('center', '', '', '', 'generalbox', 'intro');
|
||||
print_string('notavailableyet', 'assignment');
|
||||
print_simple_box_end();
|
||||
} else {
|
||||
$this->view_intro();
|
||||
}
|
||||
|
||||
$this->view_dates();
|
||||
|
||||
if (has_capability('mod/assignment:submit', $this->context)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue