Skip to content

Commit

Permalink
Fixes #858 - find admin group by name instead of ID for consideration…
Browse files Browse the repository at this point in the history
… of clustered DBs
  • Loading branch information
snipe committed Jun 18, 2015
1 parent 2be1d64 commit 3d4607e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/commands/AppCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ protected function sentryCreateUser()
$user = Sentry::getUserProvider()->create($data);

// Associate the Admin group to this user
$group = Sentry::getGroupProvider()->findById(1);
$group = Sentry::getGroupProvider()->findGroupByName('Admin');
$user->addGroup($group);

// Show the success message
Expand Down

0 comments on commit 3d4607e

Please sign in to comment.