mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
fix: #9389, allow admins to add themselves to private groups
This commit is contained in:
@@ -98,7 +98,7 @@ groupsAPI.join = async function (caller, data) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isSelf && groupData.private && groupData.disableJoinRequests) {
|
||||
if (!isCallerAdmin && isSelf && groupData.private && groupData.disableJoinRequests) {
|
||||
throw new Error('[[error:group-join-disabled]]');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user