Commit 2dbd0e3d authored by Richard Mansfield's avatar Richard Mansfield

Allow standard controlled groups to be created in cron scripts

Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 94d84edd
......@@ -50,7 +50,7 @@ class GroupTypeStandard extends GroupType {
public static function user_allowed_join_types($user, $all=false) {
$jointypes = array('open', 'request', 'invite');
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[] = 'controlled';
}
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