mirror of
https://github.com/pretix/pretix.git
synced 2026-10-02 19:24:42 +00:00
add meta_properties from organizer only
This commit is contained in:
@@ -855,8 +855,7 @@ class EventMetaPropertiesViewSet(viewsets.ModelViewSet):
|
||||
write_permission = 'organizer.settings.general:write'
|
||||
|
||||
def get_queryset(self):
|
||||
qs = EventMetaProperty.objects.all()
|
||||
return qs
|
||||
return self.request.organizer.meta_properties.all()
|
||||
|
||||
def get_serializer_context(self):
|
||||
ctx = super().get_serializer_context()
|
||||
|
||||
Reference in New Issue
Block a user