Skip to content

Commit 3c05f04

Browse files
authored
Merge pull request #2840 from JHWelch/remove-unnecessary-call
Remove `collectPermissions` that is not being assigned
2 parents cd1983c + 502ec93 commit 3c05f04

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Traits/HasPermissions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ public function forgetWildcardPermissionIndex(): void
450450
public function syncPermissions(...$permissions)
451451
{
452452
if ($this->getModel()->exists) {
453-
$this->collectPermissions($permissions);
454453
$this->permissions()->detach();
455454
$this->setRelation('permissions', collect());
456455
}

0 commit comments

Comments
 (0)