From d8f37e799ba18eae7b44af0552d74298f6ede265 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 2 Apr 2018 11:58:02 -0400 Subject: [PATCH] hide launch button for invalid JTs --- awx/main/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/access.py b/awx/main/access.py index bbbcd0652f..6f621cab46 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -344,7 +344,7 @@ class BaseAccess(object): if 'write' not in getattr(self.user, 'oauth_scopes', ['write']): user_capabilities[display_method] = False # Read tokens cannot take any actions continue - elif display_method == 'copy' and isinstance(obj, JobTemplate): + elif display_method in ['copy', 'start', 'schedule'] and isinstance(obj, JobTemplate): if obj.validation_errors: user_capabilities[display_method] = False continue