mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Only add public groups to TS3, or private ones that have groups already created
This commit is contained in:
@@ -166,9 +166,9 @@ class TS3Service(BaseService):
|
|||||||
# Add groups
|
# Add groups
|
||||||
if groups.count():
|
if groups.count():
|
||||||
for g in groups:
|
for g in groups:
|
||||||
if not g.name in tsgrplist:
|
if not g.name in tsgrplist and g.groupinformation.public:
|
||||||
tsgrplist[g.name] = self._create_group(g.name)
|
tsgrplist[g.name] = self._create_group(g.name)
|
||||||
if not g.name in usrgrplist:
|
if not g.name in usrgrplist and g.name in tsgrplist:
|
||||||
self.conn.send_command('servergroupaddclient', {'sgid': tsgrplist[g.name], 'cldbid': cldbid })
|
self.conn.send_command('servergroupaddclient', {'sgid': tsgrplist[g.name], 'cldbid': cldbid })
|
||||||
usrgrplist[g.name] = tsgrplist[g.name]
|
usrgrplist[g.name] = tsgrplist[g.name]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user