mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-15402: by default course/user repositories cannot be created/set
This commit is contained in:
parent
f48fb4d692
commit
9f7c761af9
@ -150,10 +150,14 @@ class repository_type {
|
||||
//retrieve visibility from option
|
||||
if (array_key_exists('enablecourseinstances',$typeoptions)) {
|
||||
$this->_options['enablecourseinstances'] = $typeoptions['enablecourseinstances'];
|
||||
} else {
|
||||
$this->_options['enablecourseinstances'] = 0;
|
||||
}
|
||||
|
||||
if (array_key_exists('enableuserinstances',$typeoptions)) {
|
||||
$this->_options['enableuserinstances'] = $typeoptions['enableuserinstances'];
|
||||
} else {
|
||||
$this->_options['enableuserinstances'] = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user