Skip to content

Nested permissions not returning 404 for missing parent entities #6556

@sentry

Description

@sentry

Sentry Issue: FLAGSMITH-API-5G4

Environment.DoesNotExist: Environment matching query does not exist.
(9 additional frame(s) were not displayed)
...
  File "features/versioning/views.py", line 222, in initial
    super().initial(request, *args, **kwargs)
  File "features/versioning/permissions.py", line 73, in has_permission
    environment = Environment.objects.get(id=environment_pk)

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssue related to the REST API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions