Skip to content

Commit

Permalink
fix: new post of a user not member in who can manage space is generat…
Browse files Browse the repository at this point in the history
…ed because of new version - EXO-72993 (#262)

fix: new post of a user not member in who can manage space is generated because of new version - EXO-72993

Before this fix every time a user creates a new version using only office, an activity is created even from user that is nor member f the space.
this fix remove this kind of activities.
  • Loading branch information
mkrout authored and exo-swf committed Oct 15, 2024
1 parent 3afe066 commit 3f68c12
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2248,6 +2248,14 @@ protected void download(DocumentStatus status) throws OnlyofficeEditorException,
LOG.debug("Node final save (Node (id={},path={}), userId={})",
node.getUUID(), node.getPath(), userId);
}
// If the status code == 2, the EDITOR_SAVED_EVENT should be thrown.
if (statusCode != 2) {
if(LOG.isDebugEnabled()) {
LOG.debug("Broacast EDITOR_VERSION_EVENT (Node (id={},path={}), userId={})",
node.getUUID(), node.getPath(), userId);
}
broadcastEvent(status, OnlyofficeEditorService.EDITOR_VERSION_EVENT);
}
}

fireSaved(status);
Expand Down

0 comments on commit 3f68c12

Please sign in to comment.