Don't force default groups on new admins, this is now handled by the user interface
This commit is contained in:
parent
2583a6be6d
commit
5d6b634ded
|
|
@ -96,8 +96,6 @@ class User extends UserBase
|
|||
if ($this->send_invite) {
|
||||
$this->sendInvitation();
|
||||
}
|
||||
|
||||
UserGroup::addUserToDefaultGroups($this);
|
||||
}
|
||||
|
||||
public function sendInvitation()
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue