public IActionResult FetchBans(uint userId, bool currentOnly)
    {
        IQueryable <PlatformBan> bans = _service.GetPlatformBans(userId);

        if (currentOnly || User.ToAccountListing().Id != userId || !User.IsInRole(ApiRoles.CM))
        {
            bans = bans.Where(b => b.BannedUntil > DateTime.UtcNow);
        }

        return(bans.Any()
                        ? Ok(bans.ProjectToType <PlatformBanDTO>().ToList())
                        : NoContent());
    }