From eccd25e30c6df3938c818be8c95d190134c176cb Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 15 Jan 2015 11:34:15 -0500 Subject: [PATCH] CheckAccess callback adjusted the callback of hte check access module. changed it to happen after successful REST call. --- awx/ui/static/js/helpers/Access.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/ui/static/js/helpers/Access.js b/awx/ui/static/js/helpers/Access.js index adaf205111..38692af2c5 100644 --- a/awx/ui/static/js/helpers/Access.js +++ b/awx/ui/static/js/helpers/Access.js @@ -39,7 +39,9 @@ angular.module('AccessHelper', ['RestServices', 'Utilities']) } else { scope.PermissionAddAllowed = false; } - + if(callback){ + scope.$emit(callback); + } }) .error(function (data, status) { ProcessErrors(scope, data, status, null, { @@ -50,9 +52,7 @@ angular.module('AccessHelper', ['RestServices', 'Utilities']) }); } } - if(callback){ - scope.$emit(callback); - } + //if (!access) { // Alert('Access Denied', 'You do not have access to this function. Please contact your system administrator.'); //}