Don't force default groups on new admins, this is now handled by the user interface

This commit is contained in:
Samuel Georges 2014-12-16 12:48:54 +11:00
parent 2583a6be6d
commit 5d6b634ded
2 changed files with 0 additions and 8 deletions

View File

@ -96,8 +96,6 @@ class User extends UserBase
if ($this->send_invite) {
$this->sendInvitation();
}
UserGroup::addUserToDefaultGroups($this);
}
public function sendInvitation()

View File

@ -40,10 +40,4 @@ class UserGroup extends GroupBase
{
$this->users()->sync(User::lists('id'));
}
public static function addUserToDefaultGroups($user, $detaching = false)
{
$user->groups()->sync(self::where('is_new_user_default', true)->lists('id'), $detaching);
}
}