diff --git a/Disco.Services/Plugins/PluginWebHandlerController.cs b/Disco.Services/Plugins/PluginWebHandlerController.cs index 8c0a5cc5..5c6f1854 100644 --- a/Disco.Services/Plugins/PluginWebHandlerController.cs +++ b/Disco.Services/Plugins/PluginWebHandlerController.cs @@ -32,7 +32,7 @@ namespace Disco.Services.Plugins if (CurrentUser != null) AuthorizationLog.LogAccessDenied(CurrentUser.Id, resource, message); - return new HttpUnauthorizedResult(message); + return new HttpUnauthorizedResult(); } } diff --git a/Disco.Web/Controllers/PluginWebHandlerController.cs b/Disco.Web/Controllers/PluginWebHandlerController.cs index 5ed31489..437b9d11 100644 --- a/Disco.Web/Controllers/PluginWebHandlerController.cs +++ b/Disco.Web/Controllers/PluginWebHandlerController.cs @@ -32,7 +32,7 @@ namespace Disco.Web.Controllers if (UserService.CurrentUserId != null) AuthorizationLog.LogAccessDenied(UserService.CurrentUserId, string.Format("{0} [{1}]", accessDeniedException.Resource, Request.RawUrl), accessDeniedException.Message); - return new HttpUnauthorizedResult(accessDeniedException.Message); + return new HttpUnauthorizedResult(); } }