diff --git a/products/ASC.Files/Core/Core/FileStorageService.cs b/products/ASC.Files/Core/Core/FileStorageService.cs index cc709ee840c..1331fbdaf2e 100644 --- a/products/ASC.Files/Core/Core/FileStorageService.cs +++ b/products/ASC.Files/Core/Core/FileStorageService.cs @@ -2616,16 +2616,15 @@ public async Task SetAceObjectAsync(AceCollection aceCollection, b switch (eventType) { case EventType.Create: - await _filesMessageService.SendAsync(MessageAction.RoomCreateUser, entry, user.Id, name, + await _filesMessageService.SendAsync(MessageAction.RoomCreateUser, entry, user.Id, name, FileShareExtensions.GetAccessString(ace.Access, true)); break; case EventType.Remove: - await _filesMessageService.SendAsync(MessageAction.RoomRemoveUser, entry, user.Id, name, + await _filesMessageService.SendAsync(MessageAction.RoomRemoveUser, entry, user.Id, name, FileShareExtensions.GetAccessString(ace.Access, true)); break; case EventType.Update: - await _filesMessageService.SendAsync(MessageAction.RoomUpdateAccessForUser, entry, user.Id, name, - FileShareExtensions.GetAccessString(ace.Access, true)); + await _filesMessageService.SendAsync(MessageAction.RoomUpdateAccessForUser, entry, user.Id, ace.Access, true, name); break; } } diff --git a/products/ASC.Files/Core/Helpers/FilesMessageService.cs b/products/ASC.Files/Core/Helpers/FilesMessageService.cs index ba989d6fcdf..3b352954182 100644 --- a/products/ASC.Files/Core/Helpers/FilesMessageService.cs +++ b/products/ASC.Files/Core/Helpers/FilesMessageService.cs @@ -83,9 +83,9 @@ public async Task SendAsync(MessageAction action, FileEntry entry, Guid us await SendAsync(action, entry, null, userId, FileShare.None, description); } - public async Task SendAsync(MessageAction action, FileEntry entry, Guid userId, FileShare userRole, params string[] description) + public async Task SendAsync(MessageAction action, FileEntry entry, Guid userId, FileShare userRole, bool useRoomFormat = false, params string[] description) { - description = description.Append(FileShareExtensions.GetAccessString(userRole)).ToArray(); + description = description.Append(FileShareExtensions.GetAccessString(userRole, useRoomFormat)).ToArray(); await SendAsync(action, entry, null, userId, userRole, description); }