1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 01:44:04 +00:00

Fix for Initialized being called as function error (#373)

Co-authored-by: Josh Young <josh@vertogroup.com.au>
This commit is contained in:
Josh 2020-04-27 23:34:35 +09:30 committed by GitHub
parent 03e21621a0
commit d990281309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ class TelescopeTags implements Feature
|| PreventAccessFromTenantDomains::routeHasMiddleware(request()->route(), 'universal');
// Don't do anything if we're visiting a universal route on a central domain
if ($tenantRoute && tenancy()->initialized()) {
if ($tenantRoute && tenancy()->initialized) {
$tags = array_merge($tags, [
'tenant:' . tenant('id'),
]);