Read version number from GitHub

This commit is contained in:
Oliver Walters committed 2021-03-11 19:56:22 +11:00
1 parent 3cf5aec289
commit 18defcff16
4 files changed
+72 -8

No files matched your search

+1 -1
View File
@@ -486,7 +486,7 @@ class InvenTreeSetting(models.Model):
create: If True, create a new setting if the specified key does not exist.
"""
if not user.is_staff:
if user is not None and not user.is_staff:
return
try: