diff --git a/awx/ui/client/lib/components/layout/layout.directive.js b/awx/ui/client/lib/components/layout/layout.directive.js index df91ea37fb..7d1f457f57 100644 --- a/awx/ui/client/lib/components/layout/layout.directive.js +++ b/awx/ui/client/lib/components/layout/layout.directive.js @@ -61,8 +61,8 @@ function AtLayoutController ($scope, $http, strings, ProcessErrors, $transitions } function checkNotificationAdmin () { - const usersPath = `/api/v2/users/${vm.currentUserId}/roles/?role_field=notification_admin_role`; - $http.get(usersPath) + const notifAdminOrgsPath = 'api/v2/organizations/?role_level=notification_admin_role'; + $http.get(notifAdminOrgsPath) .then(({ data }) => { if (data.count > 0) { vm.isNotificationAdmin = true; @@ -73,7 +73,7 @@ function AtLayoutController ($scope, $http, strings, ProcessErrors, $transitions .catch(({ data, status }) => { ProcessErrors(null, data, status, null, { hdr: strings.get('error.HEADER'), - msg: strings.get('error.CALL', { path: usersPath, action: 'GET', status }) + msg: strings.get('error.CALL', { path: notifAdminOrgsPath, action: 'GET', status }) }); }); }