diff --git a/src/Umbraco.Web.UI.Client/src/common/security/interceptor.js b/src/Umbraco.Web.UI.Client/src/common/security/interceptor.js index 23ed171730..fe77a4b26f 100644 --- a/src/Umbraco.Web.UI.Client/src/common/security/interceptor.js +++ b/src/Umbraco.Web.UI.Client/src/common/security/interceptor.js @@ -22,9 +22,15 @@ angular.module('umbraco.security.interceptor', ['umbraco.security.retryQueue']) //http://issues.umbraco.org/issue/U4-2749 //It was decided to just put these messages into the normal status messages. + + var msg = "Unauthorized access to URL:
" + originalResponse.config.url.split('?')[0] + ""; + if (originalResponse.config.data) { + msg += "
with data:
" + angular.toJson(originalResponse.config.data) + "
Contact your administrator for information."; + } + notifications.error( "Authorization error", - "Unauthorized access to URL:
" + originalResponse.config.url + "
with data:
" + angular.toJson(originalResponse.config.data) + "
Contact your administrator for information."); + msg); } return promise; });