This commit is contained in:
2026-08-17 11:30:14 +02:00
parent fe94c2fb9c
commit 321f11e817
5 changed files with 58 additions and 3 deletions
+2
View File
@@ -58,6 +58,8 @@ type Server struct {
// testPlatformAdmin optional override for RequirePlatformAdmin unit tests.
testPlatformAdmin func(ctx context.Context, userID uuid.UUID) (bool, error)
// testCompanyOwner optional override for allowCompanyAdminOrPlatform owner checks.
testCompanyOwner func(ctx context.Context, userID uuid.UUID) (bool, error)
// testStaffAccess optional override for RequireSupportDesk / RequirePlatformAdmin tests.
testStaffAccess func(ctx context.Context, userID uuid.UUID) (auth.StaffAccess, error)
// testAssertFeatures optional override for requireFeatures / plan-gate unit tests.