mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove test code
This commit is contained in:
parent
36359fc547
commit
0e971c468b
@ -20,8 +20,6 @@ from rest_framework.views import APIView
|
||||
from .views import AjaxView
|
||||
from .version import inventreeVersion, inventreeInstanceName
|
||||
|
||||
from users.models import check_user_role, RuleSet
|
||||
|
||||
from plugins import plugins as inventree_plugins
|
||||
|
||||
|
||||
|
@ -45,7 +45,7 @@ class RolePermission(permissions.BasePermission):
|
||||
user = request.user
|
||||
|
||||
# Superuser can do it all
|
||||
if False and user.is_superuser:
|
||||
if user.is_superuser:
|
||||
return True
|
||||
|
||||
# Map the request method to a permission type
|
||||
|
Loading…
Reference in New Issue
Block a user