Skip to content

Commit 502ec93

Browse files
committed
Remove collectPermissions that is not being assigned
1 parent bfb824a commit 502ec93

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)