feat(auth): implement permission-based access for scanner functionality and update related tests
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user