Remove test code

This commit is contained in:
Oliver Walters 2021-02-26 14:07:18 +11:00
parent 36359fc547
commit 0e971c468b
2 changed files with 2 additions and 4 deletions

View File

@ -20,8 +20,6 @@ from rest_framework.views import APIView
from .views import AjaxView from .views import AjaxView
from .version import inventreeVersion, inventreeInstanceName from .version import inventreeVersion, inventreeInstanceName
from users.models import check_user_role, RuleSet
from plugins import plugins as inventree_plugins from plugins import plugins as inventree_plugins
@ -70,7 +68,7 @@ class AttachmentMixin:
attachment = serializer.save() attachment = serializer.save()
attachment.user = self.request.user attachment.user = self.request.user
attachment.save() attachment.save()
class ActionPluginView(APIView): class ActionPluginView(APIView):
""" """

View File

@ -45,7 +45,7 @@ class RolePermission(permissions.BasePermission):
user = request.user user = request.user
# Superuser can do it all # Superuser can do it all
if False and user.is_superuser: if user.is_superuser:
return True return True
# Map the request method to a permission type # Map the request method to a permission type