mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-22 15:56:14 +00:00
[PUI] Updates for AdminButton (#8434)
* [PUI] Updates for AdminButton - Hide if django admin interface is disabled - Use correct admin URL * Adjust InfoView * Add playwright tests
This commit is contained in:
1 parent
93a8090e99
commit
245803b0d4
6 files changed
+32
-6
No files matched your search
@@ -236,6 +236,9 @@ class InfoView(AjaxView):
|
||||
'platform': InvenTree.version.inventreePlatform() if is_staff else None,
|
||||
'installer': InvenTree.version.inventreeInstaller() if is_staff else None,
|
||||
'target': InvenTree.version.inventreeTarget() if is_staff else None,
|
||||
'django_admin': settings.INVENTREE_ADMIN_URL
|
||||
if (is_staff and settings.INVENTREE_ADMIN_ENABLED)
|
||||
else None,
|
||||
}
|
||||
|
||||
return JsonResponse(data)
|
||||
|
||||
Reference in new issue
Block a user