Skip to content

Commit

Permalink
Throw error if record isn't saved
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-rueegg committed Dec 16, 2023
1 parent 98abd0b commit 3898529
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public function setGroupState($groupId, $permission, $state)
if ($state === '' || $state === null) {
if ($record !== null) {
$record->delete();
$this->clear();
}
return;
}
Expand Down

0 comments on commit 3898529

Please sign in to comment.