Move new version creation blocking from the documents app to the checkouts app.
Closes GitLab #294.
This commit is contained in:
@@ -20,7 +20,7 @@ from .permissions import (
|
||||
|
||||
def document_new_version_not_blocked(context):
|
||||
NewVersionBlock = apps.get_model(
|
||||
app_label='documents', model_name='NewVersionBlock'
|
||||
app_label='checkouts', model_name='NewVersionBlock'
|
||||
)
|
||||
|
||||
return not NewVersionBlock.objects.is_blocked(context['object'])
|
||||
|
||||
Reference in New Issue
Block a user