mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge branch 'stock-adjust-permissions'
This commit is contained in:
commit
9eba3f42e0
@ -36,12 +36,6 @@ class RolePermission(permissions.BasePermission):
|
||||
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
|
||||
|
||||
# Superuser can do it all
|
||||
|
@ -126,9 +126,7 @@ class StockAdjust(APIView):
|
||||
|
||||
"""
|
||||
|
||||
permission_classes = [
|
||||
permissions.IsAuthenticated,
|
||||
]
|
||||
queryset = StockItem.objects.none()
|
||||
|
||||
allow_missing_quantity = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user