Browse Source

remove company where

peterguo 2 months ago
parent
commit
a64aed6ef6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/API/ActionController.php

+ 1 - 1
app/Http/Controllers/API/ActionController.php

@@ -23,7 +23,7 @@ class ActionController extends Controller
     {
         $actionObjectType = ActionObjectType::from($objectType);
 
-        $model = $actionObjectType->modelBuilder()->where("company_id", Auth::user()->company_id)->findOrFail($objectId);
+        $model = $actionObjectType->modelBuilder()->findOrFail($objectId);
 
         $objectIds = [$objectId];
         if (ActionObjectType::CONTAINER_FILE->value == $objectType) {