diff --git a/InvenTree/common/api.py b/InvenTree/common/api.py index 3132f6a16d..fc50f0f50e 100644 --- a/InvenTree/common/api.py +++ b/InvenTree/common/api.py @@ -200,7 +200,7 @@ class UserSettingsPermissions(permissions.BasePermission): try: user = request.user - except AttributeError: + except AttributeError: # pragma: no cover return False return user == obj.user