mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 04:30:05 -03:30
Merge pull request #6773 from mabashian/2824-403-error-message
Tweaked 403 error message
This commit is contained in:
@@ -154,11 +154,10 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
|||||||
$log.debug('Debug: ' + defaultMsg.msg);
|
$log.debug('Debug: ' + defaultMsg.msg);
|
||||||
}
|
}
|
||||||
if (status === 403) {
|
if (status === 403) {
|
||||||
msg = 'The API responded with a 403 Access Denied error. ';
|
|
||||||
if (data && data.detail) {
|
if (data && data.detail) {
|
||||||
msg += 'Detail: ' + data.detail;
|
msg = data.detail;
|
||||||
} else {
|
} 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);
|
Alert(defaultMsg.hdr, msg);
|
||||||
} else if (status === 409) {
|
} else if (status === 409) {
|
||||||
|
|||||||
Reference in New Issue
Block a user