Skip to content

Commit 44d8e33

Browse files
committed
fix: Use gate denies instead for readability
1 parent 5056452 commit 44d8e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Html/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function addScript(string $view): static
267267

268268
public function addScriptIfCannot(string $ability, string $view): static
269269
{
270-
if (Gate::allows($ability)) {
270+
if (Gate::denies($ability)) {
271271
$this->addScript($view);
272272
}
273273

0 commit comments

Comments
 (0)