1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Merge pull request #6773 from mabashian/2824-403-error-message

Tweaked 403 error message
This commit is contained in:
Michael Abashian 2017-06-28 17:44:04 -04:00 committed by GitHub
commit 79c19d14e5

View File

@ -154,11 +154,10 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
$log.debug('Debug: ' + defaultMsg.msg);
}
if (status === 403) {
msg = 'The API responded with a 403 Access Denied error. ';
if (data && data.detail) {
msg += 'Detail: ' + data.detail;
msg = data.detail;
} else {
msg += 'Please contact your system administrator.';
msg = 'The API responded with a 403 Access Denied error. Please contact your system administrator.';
}
Alert(defaultMsg.hdr, msg);
} else if (status === 409) {