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:
commit
79c19d14e5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user