[v2] Hide white label for paid users (#3421)

* Control the white label

* Remove redirect
This commit is contained in:
Benjamin Beganović 2020-03-04 12:22:57 +01:00 committed by GitHub
parent e14c3682f2
commit 5a7d6c4a7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -23,6 +23,6 @@ class Authenticate extends Middleware
*/
protected function redirectTo($request)
{
return route('login');
return route('client.login');
}
}

View File

@ -1,8 +1,10 @@
</div>
<footer class="app-footer">
<div class="ml-auto">
<span>Powered by</span>
<a href="https://invoiceninja.com">InvoiceNinja</a> &copy; 2019 Invoice Ninja LLC.
@if(!$user->company->account->isPaid())
<span>Powered by</span>
<a href="https://invoiceninja.com">InvoiceNinja</a> &copy; 2019 Invoice Ninja LLC.
@endif
</div>
</footer>
<!-- Bootstrap and necessary plugins-->

View File

@ -24,6 +24,10 @@
function gtag(){}
</script>
@endif
@php
$user = auth()->guard('contact')->user();
@endphp
<meta charset="utf-8">
<title>@yield('meta_title', 'Invoice Ninja') | {{ config('app.name') }}</title>