mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
wrap error message in internationalization marker
This commit is contained in:
@@ -1671,8 +1671,8 @@ class WorkflowJobAccess(BaseAccess):
|
|||||||
if not node_access.can_add({'reference_obj': node}):
|
if not node_access.can_add({'reference_obj': node}):
|
||||||
wj_add_perm = False
|
wj_add_perm = False
|
||||||
if not wj_add_perm and self.save_messages:
|
if not wj_add_perm and self.save_messages:
|
||||||
self.messages['workflow_job_template'] = ('Template has been modified since job was launched, '
|
self.messages['workflow_job_template'] = _('Template has been modified since job was launched, '
|
||||||
'and you do not have permission to its resources.')
|
'and you do not have permission to its resources.')
|
||||||
return wj_add_perm
|
return wj_add_perm
|
||||||
|
|
||||||
def can_cancel(self, obj):
|
def can_cancel(self, obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user