Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b63e25
)
MDL-34444 course: show section availability info
author
Dan Poltawski
<dan@moodle.com>
Wed, 1 Aug 2012 02:28:36 +0000
(10:28 +0800)
committer
Eloy Lafuente (stronk7)
<stronk7@moodle.org>
Wed, 22 Aug 2012 06:40:48 +0000
(08:40 +0200)
When available, rather than a capability error.
course/view.php
patch
|
blob
|
blame
|
history
diff --git
a/course/view.php
b/course/view.php
index
f0c3079
..
86b6186
100644
(file)
--- a/
course/view.php
+++ b/
course/view.php
@@
-105,7
+105,7
@@
$coursesections = $modinfo->get_section_info($section, MUST_EXIST);
// Check user is allowed to see it.
- if (!$coursesections->uservisible) {
+ if (!$coursesections->uservisible
&& !empty($section->availableinfo)
) {
// Note: We actually already know they don't have this capability
// or uservisible would have been true; this is just to get the
// correct error message shown.