mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-21 12:16:29 +00:00
Remove test code
This commit is contained in:
@@ -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):
|
||||||
"""
|
"""
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user