Prevent room creation

Robert Larsen
Added almost 5 years ago

Hi all

I work on a site that currently uses ejabberd but we are preparing to migrate to Tigase. Only thing remaining is to prevent users from being able to create MUC rooms.

We want to be in charge of room creation and in ejabberd we could deny them the right to create rooms. If they did, this would happen:

<presence xmlns="jabber:client" from="" to="" type="error">
    <error code="403" type="auth">
        <forbidden xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
        <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">
            Room creation is denied by service policy

When a user got this in response to joining a room, he can ask a module that we have developed to create the room.

Is this possible with Tigase?

Looking into the code for PresenceModule around the 'repository.createNewRoom(...)' call I cannot see how to prevent user created rooms.

Is this something you would consider adding?

Replies (1)


Added by Bartosz Małkowski TigaseTeam almost 5 years ago

There is no way to prevent room creation by non-admin user.

It need to be implemented.