Project

Profile

Help

Story #8068 » hardcoded.patch

lmjachky, 03/02/2021 06:53 PM

View differences:

pulp_container/app/registry_api.py
from django.conf import settings
from guardian.shortcuts import get_objects_for_user
from pulpcore.plugin.models import Artifact, ContentArtifact, UploadChunk
from pulpcore.plugin.files import PulpTemporaryUploadedFile
from rest_framework.exceptions import (
......
serializer_class = ContainerCatalogSerializer
pagination_class = ContainerCatalogPagination
def get_queryset(self):
queryset = super().get_queryset()
permission = "container.pull_containerdistribution"
return get_objects_for_user(self.request.user, permission, queryset)
class ContainerTagListSerializer(ModelSerializer):
"""
(3-3/3)