From 7e822c34d5d8c8c5dd1d2cc5b2fc9603a6eb5a3a Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 21 Jan 2015 18:01:33 -0500 Subject: [PATCH] Fixed issue with permissions for admins When I added the callback for the CheckAccess module, I forgot to add the callback for whether the user is an admin (already added for non-admin users) --- awx/ui/static/js/helpers/Access.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/ui/static/js/helpers/Access.js b/awx/ui/static/js/helpers/Access.js index 38692af2c5..226dfa8920 100644 --- a/awx/ui/static/js/helpers/Access.js +++ b/awx/ui/static/js/helpers/Access.js @@ -29,6 +29,9 @@ angular.module('AccessHelper', ['RestServices', 'Utilities']) if (me.is_superuser) { scope.PermissionAddAllowed = true; + if(callback){ + scope.$emit(callback); + } } else { if (me.related.admin_of_organizations) { Rest.setUrl(me.related.admin_of_organizations);