diff --git a/xmppserver/src/main/webapp/muc-create-permission.jsp b/xmppserver/src/main/webapp/muc-create-permission.jsp index 96018acac5..c31b33f0dd 100644 --- a/xmppserver/src/main/webapp/muc-create-permission.jsp +++ b/xmppserver/src/main/webapp/muc-create-permission.jsp @@ -1,7 +1,7 @@ <%@ page contentType="text/html; charset=UTF-8" %> <%-- - - - Copyright (C) 2004-2008 Jive Software, 2017-2025 Ignite Realtime Foundation. All rights reserved. + - Copyright (C) 2004-2008 Jive Software, 2017-2026 Ignite Realtime Foundation. All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. @@ -86,6 +86,7 @@ } else { mucService.setRoomCreationRestricted(true); + mucService.setAllRegisteredUsersAllowedToCreate(allowAllRegisteredUsers); // Log the event webManager.logEvent("set MUC room creation to not restricted for service "+mucname, null); response.sendRedirect("muc-create-permission.jsp?success=true&mucname="+URLEncoder.encode(mucname, StandardCharsets.UTF_8)); @@ -126,6 +127,7 @@ if (add) { mucService.addUsersAllowedToCreate(allowedJIDs); mucService.setAllRegisteredUsersAllowedToCreate(allowAllRegisteredUsers); + mucService.setRoomCreationRestricted(true); // Log the event webManager.logEvent("updated MUC room creation permissions for service "+mucname, null); response.sendRedirect("muc-create-permission.jsp?addsuccess=true&mucname="+URLEncoder.encode(mucname, StandardCharsets.UTF_8)); @@ -151,6 +153,29 @@ + @@ -193,6 +218,7 @@
+ " />
@@ -202,6 +228,7 @@ > @@ -210,12 +237,12 @@ - > - + @@ -227,8 +254,7 @@
- -<% if (mucService.isRoomCreationRestricted()) { %> +
"> @@ -238,13 +264,13 @@

- onChange="this.form.submit()"> + >


" - onclick="this.form.openPerms[1].checked=true;" id="userJIDtf"> + " + id="userJIDtf">

@@ -308,7 +334,7 @@ -<% } %> +