Skip to content

Commit

Permalink
Update SetTenant.php
Browse files Browse the repository at this point in the history
  • Loading branch information
secmohammed authored Jun 27, 2019
1 parent 4896b6a commit e872074
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Tenant/Middleware/SetTenant.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class SetTenant
*/
public function handle($request, Closure $next)
{

optional($this->resolveTenant(session('tenant')), function ($tenant) {
if (!auth()->user()->{str_plural(app(Tenant::class)->getTable())}->contains('id', $tenant->id)) {
throw new AuthenticationException(
Expand Down

0 comments on commit e872074

Please sign in to comment.