Skip to content

Commit

Permalink
fixed change owner
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbannov committed Dec 6, 2023
1 parent e682bca commit 6485197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion products/ASC.Files/Core/Utils/FileSharing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public async Task<AceProcessingResult> SetAceObjectAsync<T>(List<AceWrapper> ace

foreach (var w in aceWrappers.OrderByDescending(ace => ace.SubjectGroup))
{
if (entry.CreateBy == currentUserId && w.Id == currentUserId)
if (entry.CreateBy == currentUserId && w.Id == currentUserId && w.Access != FileShare.RoomAdmin)
{
continue;
}
Expand Down

0 comments on commit 6485197

Please sign in to comment.