Project

General

Profile

Prevent room creation

Robert Larsen
Added over 4 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="my_test_room@conference.komogvind.dk/betatester01" to="betatester01@komogvind.dk/22598024081400493159183011" 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
        </text>
    </error>
</presence>

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)

Avatar?id=6098&size=32x32

Added by Bartosz Malkowski TigaseTeam over 4 years ago

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

It need to be implemented.

    (1-1/1)