Skip to content

Commit a27208d

Browse files
committed
added error message in permissions sync
1 parent 7d41a30 commit a27208d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Commands/PermissionSyncCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ protected function migrate($data, $roles)
174174
foreach ($data as $d) {
175175
if (!$this->permission->syncRolePermissions($d['role_name'], $d, $roles)) {
176176
$db->rollback();
177+
$this->error('Permissions Synced Failed!');
178+
return false;
179+
177180
}
178181
}
179182
$db->commit();

0 commit comments

Comments
 (0)