Commit 77633afa authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Do not allow to create a room if MUC delete does not allow it.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10464 b35dd754-fafc-0310-a699-88a17e54d16e
parent 05c7302b
......@@ -480,12 +480,20 @@ public class MultiUserChatServiceImpl implements Component, MultiUserChatService
catch (IllegalArgumentException e) {
// Check if room needs to be recreated in case it failed to be created previously
// (or was deleted somehow and is expected to exist by a delegate).
if (mucEventDelegate != null && mucEventDelegate.loadConfig(room)) {
if (mucEventDelegate != null) {
if (mucEventDelegate.loadConfig(room)) {
loaded = true;
if (room.isPersistent()) {
MUCPersistenceManager.saveToDB(room);
}
}
else {
// Room does not exist and delegate does not recognize it and does
// not allow room creation
throw new NotAllowedException();
}
}
else {
// The room does not exist so check for creation permissions
// Room creation is always allowed for sysadmin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment