Merge branch 'stock-adjust-permissions'

This commit is contained in:
Oliver Walters 2021-02-27 22:45:08 +11:00
commit 9eba3f42e0
2 changed files with 1 additions and 9 deletions

View File

@ -36,12 +36,6 @@ class RolePermission(permissions.BasePermission):
Determine if the current user has the specified permissions Determine if the current user has the specified permissions
""" """
# First, check that the user is authenticated!
auth = permissions.IsAuthenticated()
if not auth.has_permission(request, view):
return False
user = request.user user = request.user
# Superuser can do it all # Superuser can do it all

View File

@ -126,9 +126,7 @@ class StockAdjust(APIView):
""" """
permission_classes = [ queryset = StockItem.objects.none()
permissions.IsAuthenticated,
]
allow_missing_quantity = False allow_missing_quantity = False