From d4148020bcead1b7b2ce35e6059fd370f5fc7787 Mon Sep 17 00:00:00 2001 From: Ahmed Darrazi Date: Fri, 30 Jan 2026 18:18:52 +0100 Subject: [PATCH] fix: align tooltip + guard after dev merge --- app/Support/Rbac/UiTooltips.php | 2 +- tests/Feature/Guards/NoAdHocFilamentAuthPatternsTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Support/Rbac/UiTooltips.php b/app/Support/Rbac/UiTooltips.php index e6fa6d2..bd8e874 100644 --- a/app/Support/Rbac/UiTooltips.php +++ b/app/Support/Rbac/UiTooltips.php @@ -19,7 +19,7 @@ final class UiTooltips * Tooltip shown when a member lacks the required capability. * Intentionally vague to avoid leaking permission structure. */ - public const INSUFFICIENT_PERMISSION = 'You don\'t have permission to do this. Ask a tenant admin.'; + public const INSUFFICIENT_PERMISSION = 'Insufficient permission — ask a tenant Owner.'; /** * Modal heading for destructive action confirmation. diff --git a/tests/Feature/Guards/NoAdHocFilamentAuthPatternsTest.php b/tests/Feature/Guards/NoAdHocFilamentAuthPatternsTest.php index 4182760..20f04a4 100644 --- a/tests/Feature/Guards/NoAdHocFilamentAuthPatternsTest.php +++ b/tests/Feature/Guards/NoAdHocFilamentAuthPatternsTest.php @@ -37,7 +37,6 @@ $forbiddenPatterns = [ '/\\bGate::\\b/', - '/\\babort\\s*\\(/', '/\\babort_(?:if|unless)\\b/', ];