Skip to content

Commit

Permalink
added error message in permissions sync
Browse files Browse the repository at this point in the history
  • Loading branch information
nahid committed Feb 27, 2018
1 parent 7d41a30 commit a27208d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Commands/PermissionSyncCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ protected function migrate($data, $roles)
foreach ($data as $d) {
if (!$this->permission->syncRolePermissions($d['role_name'], $d, $roles)) {
$db->rollback();
$this->error('Permissions Synced Failed!');
return false;

}
}
$db->commit();
Expand Down

0 comments on commit a27208d

Please sign in to comment.