2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

Read version number from GitHub

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

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: