-
I want to change configuration of ACL (adding, editing, removing restrictions for some user) on the fly. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Rules are updated from config file when you call 'ejabberdctr reload_config'. There is internal in memory database for acl rules, so theoretically you could update that, but i don't think there is external api to access it, that would require some custom code to perform changes. |
Beta Was this translation helpful? Give feedback.
-
As @prefiks explained, the reload_config command will read your configuration file and apply it immediately. If you changed acl rules in the config files, they are applied as soon as you run that comand.
Yes, simply edit ejabberd.yml and run reload_config. In case you plan to write/remove those acls programatically often, using a custom program, you may want to read Include Additional Files. This way, your program only needs to edit a specific file called acl.yml and not mess with the big ejabberd.yml |
Beta Was this translation helpful? Give feedback.
Rules are updated from config file when you call 'ejabberdctr reload_config'. There is internal in memory database for acl rules, so theoretically you could update that, but i don't think there is external api to access it, that would require some custom code to perform changes.