Skip to content

Commit

Permalink
As an authenticated user I can create and view artifacts.
Browse files Browse the repository at this point in the history
closes #8193
  • Loading branch information
ipanova authored and bmbouter committed Feb 2, 2021
1 parent 2cddc5d commit c600ff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/8193.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
As an authenticated user I can create and view artifacts.
3 changes: 2 additions & 1 deletion pulpcore/app/viewsets/content.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from gettext import gettext as _

from django.db import models
from rest_framework import mixins, status
from rest_framework import mixins, permissions, status
from rest_framework.response import Response

from pulpcore.app.models import Artifact, Content, SigningService
Expand Down Expand Up @@ -55,6 +55,7 @@ class ArtifactViewSet(
queryset = Artifact.objects.all()
serializer_class = ArtifactSerializer
filterset_class = ArtifactFilter
permission_classes = (permissions.IsAuthenticated,)

def destroy(self, request, pk):
"""
Expand Down

0 comments on commit c600ff1

Please sign in to comment.