Skip to content

Commit

Permalink
don't allow if even fed is disabled and room is federated
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Aug 20, 2024
1 parent 0756085 commit 1e58bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/server/methods/addRoomOwner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Meteor.methods<ServerMethods>({
});
}

if (isFederated && isFederationEnabled() && !isFederationReady()) {
if (isFederated && (!isFederationEnabled() || !isFederationReady())) {
throw new FederationMatrixInvalidConfigurationError('unable to change room owners');
}

Expand Down

0 comments on commit 1e58bc4

Please sign in to comment.