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/', ];