Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Mar 25, 2024
1 parent 1101b53 commit 33070ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ee/api/rbac/access_control.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
from typing import Union, cast
from typing import cast

from django.db.models.query import QuerySet, RawQuerySet

from rest_framework import exceptions, serializers, status
from rest_framework.decorators import action
from rest_framework.filters import BaseFilterBackend
from rest_framework.request import Request
from rest_framework.response import Response
from rest_framework.views import APIView

from ee.models.rbac.access_control import AccessControl
from posthog.models.personal_api_key import API_SCOPE_OBJECTS
Expand Down Expand Up @@ -91,6 +88,7 @@ class AccessControlViewSetMixin:
# 2. Get the actual object which we can pass to the serializer to check if the user created it
# 3. We can also use the serializer to check the access level for the object

# TODO: Probably move this to the TeamAndOrgViewSetMixin
def filter_queryset(self, queryset):
queryset = super().filter_queryset(queryset)
# TODO: Detect GET param to include hidden resources (for admins)
Expand Down

0 comments on commit 33070ed

Please sign in to comment.