feat(auth): implement permission-based access for scanner functionality and update related tests

This commit is contained in:
2026-08-11 14:26:28 -03:00
parent 3eaa3f8202
commit 7d9489169d
10 changed files with 81 additions and 22 deletions

View File

@@ -47,7 +47,7 @@ class ScannerTicketControllerTest extends TestCase
$this->scanner->scanCategories()->attach($this->category);
}
public function test_scanner_routes_require_authentication_and_scanner_role(): void
public function test_scanner_routes_require_authentication_and_scan_permission(): void
{
$this->getJson('/api/v1/scanner/tickets')->assertUnauthorized();