mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-20 06:57:57 +00:00
Read version number from GitHub
This commit is contained in:
1 parent
3cf5aec289
commit
18defcff16
4 files changed
+72
-8
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user