Allow ADMINS only to create PUBLIC Chatrooms

Hi All,

Can we configure "Ejabberd" to ALLOW only ADMINS to create Public Chatrooms (restricting non admins from creating Public Chatrooms) ? However, non admin users should still be ABLE to create Private Chatrooms.

Not possible to configure

Not possible to configure different permissions to different ACLs in the same mod_muc.

The only way I can think is to setup two different MUC services, configure one for public rooms only created by admins, and the other for private rooms created by anyone. How to setup two different mod_muc? here is the tricky part: you need to add a vhost. And later show the second MUC in the Service Discovery of the main server.

Let's imagine your vhost is "localhost", then add another almost useless vhost called "12.0.0.1" in this example, configure two mod_muc differently, like this:

hosts:
  - "localhost"
  - "127.0.0.1"

append_host_config:
  "localhost":
    modules:
      mod_muc:
        host: "public.localhost"
        access_create: muc_admin
        default_room_options:
          public: true
          public_list: true
      mod_disco:
        extra_domains: ["private.127.0.0.1"]

append_host_config:
  "127.0.0.1":
    modules:
      mod_muc:
        host: "private.127.0.0.1"
        access_create: muc
        default_room_options:
          public: false
          public_list: false
Syndicate content