34 lines
915 B
PHP
34 lines
915 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Rbac;
|
|
|
|
/**
|
|
* Standardized tooltip and confirmation messages for RBAC UI enforcement.
|
|
*
|
|
* These constants provide consistent, non-leaky messaging for:
|
|
* - Permission denials (members lacking capability)
|
|
* - Destructive action confirmations
|
|
*
|
|
* @see \App\Support\Rbac\UiEnforcement
|
|
*/
|
|
final class UiTooltips
|
|
{
|
|
/**
|
|
* Tooltip shown when a member lacks the required capability.
|
|
* Intentionally vague to avoid leaking permission structure.
|
|
*/
|
|
public const INSUFFICIENT_PERMISSION = 'Insufficient permission — ask a tenant Owner.';
|
|
|
|
/**
|
|
* Modal heading for destructive action confirmation.
|
|
*/
|
|
public const DESTRUCTIVE_CONFIRM_TITLE = 'Are you sure?';
|
|
|
|
/**
|
|
* Modal description for destructive action confirmation.
|
|
*/
|
|
public const DESTRUCTIVE_CONFIRM_DESCRIPTION = 'This action cannot be undone.';
|
|
}
|