## Bug description

I have lost edit permissions to a [dashboard I created](https://app.posthog.com/dashboard/28987), despite still being listed as the owner of the dashboard

## Expected behavior

I should still be able to edit the dashboard

## How to reproduce

I noticed this problem after adding a new insight, but this doesn't appear to be the cause of the issue. I've duplicated the dashboard to restore access and adding a new insight didn't appear to cause the issue 

## Environment

- [x] PostHog Cloud
- [ ] self-hosted PostHog (ClickHouse-based), version/commit: _please provide_
- [ ] self-hosted PostHog (Postgres-based, legacy), version/commit: _please provide_

## Additional context

#### *Thank you* for your bug report – we love squashing them!

posthog/api/dashboard.py
import json
import secrets
from typing import Any, Dict, Sequence, Type, Union, cast
from django.db.models import Prefetch, QuerySet
from django.http import Http404, HttpRequest
from django.shortcuts import get_object_or_404
from django.utils.timezone import now
from django.views.decorators.clickjacking import xframe_options_exempt
from rest_framework import exceptions, mixins, response, serializers, viewsets
from rest_framework.authentication import BaseAuthentication, BasicAuthentication, SessionAuthentication
from rest_framework.permissions import SAFE_METHODS, BasePermission, IsAuthenticated, OperandHolder, SingleOperandHolder
from rest_framework.request import Request
from posthog.api.insight import InsightSerializer, InsightViewSet
from posthog.api.routing import StructuredViewSetMixin
from posthog.api.shared import UserBasicSerializer
from posthog.api.tagged_item import TaggedItemSerializerMixin, TaggedItemViewSetMixin
from posthog.auth import PersonalAPIKeyAuthentication
from posthog.constants import INSIGHT_TRENDS
from posthog.event_usage import report_user_action
from posthog.helpers import create_dashboard_from_template
from posthog.models import Dashboard, Insight, Team
from posthog.models.user import User
from posthog.permissions import ProjectMembershipNecessaryPermissions, TeamMemberAccessPermission
from posthog.utils import render_template
class CanEditDashboard(BasePermission):