strongbox: check existence of document type (#2622)
This commit is contained in:
parent
dd9e9cfbb5
commit
60b0b6ded0
|
@ -74,6 +74,9 @@ class StrongboxItem(StorableObject):
|
|||
if not value:
|
||||
self.expiration_time = None
|
||||
return
|
||||
if not StrongboxType.has_key(self.type_id):
|
||||
return
|
||||
|
||||
if not StrongboxType.get(self.type_id).validation_months:
|
||||
self.expiration_time = None
|
||||
return
|
||||
|
|
Reference in New Issue