feat(scanner): scope login tickets scanning and history by event
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Domains\Core\Auth\Services\EventScopeService;
|
||||
use App\Domains\Core\Authorization\Enums\PermissionCode;
|
||||
use App\Domains\Core\Authorization\Enums\RoleCode;
|
||||
use Closure;
|
||||
@@ -27,6 +28,8 @@ class EnsureScannerTenant
|
||||
throw new AuthorizationException;
|
||||
}
|
||||
|
||||
app(EventScopeService::class)->eventId($user);
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user