improved tenant identification
This commit is contained in:
@ -611,7 +611,7 @@ abstract class DocumentShow extends Base
|
||||
$image->make($path)->resize($width, $height)->encode();
|
||||
});
|
||||
} catch (NotReadableException | \Exception $e) {
|
||||
Log::info('Company ID: ' . session('company_id') . ' components/documentshow.php exception.');
|
||||
Log::info('Company ID: ' . company_id() . ' components/documentshow.php exception.');
|
||||
Log::info($e->getMessage());
|
||||
|
||||
$path = base_path('public/img/company.png');
|
||||
@ -651,11 +651,11 @@ abstract class DocumentShow extends Base
|
||||
$route .= 'signed.' . $page . '.show';
|
||||
|
||||
try {
|
||||
route($route, [$this->document->id, 'company_id' => session('company_id')]);
|
||||
route($route, [$this->document->id, 'company_id' => company_id()]);
|
||||
|
||||
$signedUrl = URL::signedRoute($route, [$this->document->id, 'company_id' => session('company_id')]);
|
||||
$signedUrl = URL::signedRoute($route, [$this->document->id]);
|
||||
} catch (\Exception $e) {
|
||||
$signedUrl = URL::signedRoute('signed.invoices.show', [$this->document->id, 'company_id' => session('company_id')]);
|
||||
$signedUrl = URL::signedRoute('signed.invoices.show', [$this->document->id]);
|
||||
}
|
||||
|
||||
return $signedUrl;
|
||||
|
Reference in New Issue
Block a user