mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Fix API permissions for stock adjustment
This commit is contained in:
parent
d5597a3dca
commit
f1c8c48d35
@ -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
|
||||||
|
@ -126,9 +126,7 @@ class StockAdjust(APIView):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
permission_classes = [
|
queryset = StockItem.objects.none()
|
||||||
permissions.IsAuthenticated,
|
|
||||||
]
|
|
||||||
|
|
||||||
allow_missing_quantity = False
|
allow_missing_quantity = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user