Handle user already in group

command-line
uid 2020-10-12 18:55:36 +02:00
parent 1333c03954
commit d90151ce25
1 changed files with 4 additions and 0 deletions

View File

@ -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)