Enable pre save hook
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -118,7 +118,7 @@ class NewVersionBlockManager(models.Manager):
|
||||
return self.filter(document=document).exists()
|
||||
|
||||
def new_versions_allowed(self, document):
|
||||
if self.filter(document=document).exist():
|
||||
if self.filter(document=document).exists():
|
||||
raise NewDocumentVersionNotAllowed
|
||||
|
||||
def unblock(self, document):
|
||||
|
||||
Reference in New Issue
Block a user