Handle user already in group
This commit is contained in:
parent
1333c03954
commit
d90151ce25
|
@ -98,6 +98,10 @@ def addtogroup(uid, gcn):
|
|||
print('Group {} not found'.format(gcn))
|
||||
return
|
||||
|
||||
if uid in group['members']:
|
||||
print('User {} is already in group {}'.format(uid, gcn))
|
||||
return
|
||||
|
||||
add_group_member(client, group, user)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user