Skip to content

Commit

Permalink
Merge pull request #55 from AuroraWebSoftware/polymorphic-update-orga…
Browse files Browse the repository at this point in the history
…nization-node

some fix
  • Loading branch information
emreakay authored Dec 4, 2023
2 parents e24f656 + 755964a commit a64d67a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.2|^8.3",
"illuminate/contracts": "^10.0",
"laravel/pint": "^1.2",
"spatie/laravel-package-tools": "^1.9.2"
Expand Down
2 changes: 1 addition & 1 deletion src/Scopes/AAuthOrganizationNodeScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AAuthOrganizationNodeScope implements \Illuminate\Database\Eloquent\Scope
*/
public function apply(Builder $builder, Model $model): void
{
$organizationNodeIds = AAuth::organizationNodes(true, $model->id)->pluck('model_id');
$organizationNodeIds = AAuth::organizationNodes(true, $model::getModelType())->pluck('model_id');
$builder->whereIn('id', $organizationNodeIds);
}
}

0 comments on commit a64d67a

Please sign in to comment.