Skip to content

Commit

Permalink
fix2 default model in repos
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Teryaev committed Oct 31, 2016
1 parent b2345e9 commit 7d85d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Authentication/Repository/SentryUserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function addGroup($user_id, $group_id)
{
try
{
$group = $this->groupModel->createModel();
$group = new $this->groupModel;
$group = $group->findOrFail($group_id);
$user = $this->find($user_id);

Expand All @@ -141,7 +141,7 @@ public function removeGroup($user_id, $group_id)
{
try
{
$group = $this->groupModel->createModel();
$group = new $this->groupModel;
$group = $group->findOrFail($group_id);
$user = $this->find($user_id);
$user->removeGroup($group);
Expand Down

0 comments on commit 7d85d55

Please sign in to comment.