mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Opps. I forgot to commit this files yesterday... :-(
This close Bug 1370 (http://moodle.org/bugs/bug.php?op=show&bugid=1370)
This commit is contained in:
parent
c032f72069
commit
7856dd5949
@ -29,6 +29,10 @@
|
||||
$entriesbypage = $CFG->glossary_entbypage;
|
||||
}
|
||||
|
||||
if ($CFG->forcelogin) {
|
||||
require_login();
|
||||
}
|
||||
|
||||
if ($course->category) {
|
||||
require_login($course->id);
|
||||
if (isguest()) {
|
||||
|
@ -7,6 +7,10 @@
|
||||
optional_variable($eid,0);
|
||||
optional_variable($displayformat,-1);
|
||||
|
||||
if ($CFG->forcelogin) {
|
||||
require_login();
|
||||
}
|
||||
|
||||
if (!empty($courseid)) {
|
||||
$course = get_record("course", "id", $courseid);
|
||||
if ($course->category) {
|
||||
|
@ -52,6 +52,10 @@
|
||||
} else {
|
||||
error("Must specify glossary ID or course module ID");
|
||||
}
|
||||
|
||||
if ($CFG->forcelogin) {
|
||||
require_login();
|
||||
}
|
||||
|
||||
/// redirecting if adding a new entry
|
||||
if ($tab == GLOSSARY_ADDENTRY_VIEW ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user