Skip to content

Commit 4397f9e

Browse files
committed
Fix groupfeature blade directive
Defer group feature check to groupHasFeature method
1 parent f856dd1 commit 4397f9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Concerns/HasFeatures.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ protected function getAllGroups(array $groups): Collection
150150

151151
public function groupHasFeature(string $featureName): bool
152152
{
153-
return $this->groups->features->contains('name', $featureName);
153+
return $this->hasFeatureThroughGroup(
154+
feature: $featureName,
155+
);
154156
}
155157

156158
protected function featureExists(string $featureName): bool

0 commit comments

Comments
 (0)