Skip to content

Commit

Permalink
Merge pull request #147 from ONLYOFFICE/bugfix/65872
Browse files Browse the repository at this point in the history
Bugfix/65872
  • Loading branch information
pavelbannov authored Jan 15, 2024
2 parents 1bb9a4f + defac30 commit 3ee1dba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions products/ASC.Files/Core/Core/FileStorageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2616,16 +2616,15 @@ public async Task<string> SetAceObjectAsync<T>(AceCollection<T> 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;
}
}
Expand Down
4 changes: 2 additions & 2 deletions products/ASC.Files/Core/Helpers/FilesMessageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ public async Task SendAsync<T>(MessageAction action, FileEntry<T> entry, Guid us
await SendAsync(action, entry, null, userId, FileShare.None, description);
}

public async Task SendAsync<T>(MessageAction action, FileEntry<T> entry, Guid userId, FileShare userRole, params string[] description)
public async Task SendAsync<T>(MessageAction action, FileEntry<T> 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);
}

Expand Down

0 comments on commit 3ee1dba

Please sign in to comment.