Skip to content

Commit

Permalink
make UserAction::validateBeforeExecute() method public
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Nov 22, 2024
1 parent f8026ff commit 6b3add3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/UserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function execute(...$args)
}
}

protected function validateBeforeExecute(): void
public function validateBeforeExecute(): void
{
if ($this->enabled === false || ($this->enabled instanceof \Closure && ($this->enabled)($this->_getOwner()) === false)) {
throw new Exception('User action is disabled');
Expand Down

0 comments on commit 6b3add3

Please sign in to comment.