Commit e650ca56 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Allow cron jobs to create groups with all jointypes


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 052acd58
......@@ -46,7 +46,7 @@ class GroupTypeCourse extends GroupType {
public static function user_allowed_join_types($user, $all=false) {
$jointypes = array();
if (defined('INSTALLER') || $all || $user->get('admin') || $user->get('staff') || $user->is_institutional_admin() || $user->is_institutional_staff()) {
if (defined('INSTALLER') || defined('CRON') || $all || $user->get('admin') || $user->get('staff') || $user->is_institutional_admin() || $user->is_institutional_staff()) {
$jointypes = array_merge($jointypes, array('controlled', 'request'));
}
return $jointypes;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment