|
@@ -42,7 +42,6 @@ class CreateOrUpdateRequest extends FormRequest
|
|
|
function ($attribute, $value, $fail) {
|
|
|
$exist = ApprovalObjectType::from($this->get("object_type"))
|
|
|
->modelBuilderAllowed($value)
|
|
|
- ->where("company_id", Auth::user()->company_id)
|
|
|
->where('id', $value)
|
|
|
->count();
|
|
|
if (! $exist) {
|
|
@@ -54,7 +53,6 @@ class CreateOrUpdateRequest extends FormRequest
|
|
|
'array',
|
|
|
function ($attribute, $value, $fail) {
|
|
|
$count = File::query()
|
|
|
- ->where("company_id", Auth::user()->company_id)
|
|
|
->whereIn('id', $value)
|
|
|
->where("object_type", FileObjectType::CONTAINER)
|
|
|
->where("object_id", $this->get("object_id"))
|
|
@@ -69,7 +67,6 @@ class CreateOrUpdateRequest extends FormRequest
|
|
|
'required',
|
|
|
function ($attribute, $value, $fail) {
|
|
|
$exist = ApprovalFlow::query()
|
|
|
- ->where("company_id", Auth::user()->company_id)
|
|
|
->where('id', $value)
|
|
|
->where('status', 1)
|
|
|
->count();
|