namespace Tiku.Application.Security;

public static class TikuPolicies
{
    public const string AuthenticatedUser = "authenticated_user";
    public const string CurrentTenantMember = "current_tenant_member";
    public const string TenantBackofficeBootstrap = "tenant_backoffice_bootstrap";
    public const string PlatformBackofficeBootstrap = "platform_backoffice_bootstrap";
    public const string TenantContentManageAllScope = "tenant:content:manage:all_scope";
    public const string TenantAllDataScope = "tenant:data-scope:all";
    public const string TenantCommerceOperateAllScope = "tenant:commerce:operate:all_scope";

    public const string TenantAdmin = "tenant_admin";

    public static string TenantPermission(string permissionCode)
    {
        BackendPermissions.EnsureTenant(permissionCode);
        return permissionCode;
    }

    public static string PlatformPermission(string permissionCode)
    {
        BackendPermissions.EnsurePlatform(permissionCode);
        return permissionCode;
    }
}
