Skip to content

Commit

Permalink
BUGFIX 🐛 Make sure controllers inheriting can use the policycheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeblauw committed Jan 21, 2025
1 parent 66a29db commit 44473b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private function findConfigClass(): string
return (string) $config_class;
}

private function policyCheck(string $ability, ?Model $model = null): void
protected function policyCheck(string $ability, ?Model $model = null): void
{
// Do not check for policies if they are disabled for this model
if (!$this->config->usePolicy() ) {
Expand Down

0 comments on commit 44473b6

Please sign in to comment.