Browse Source

Handle user already in group

command-line
uid 2 years ago
parent
commit
d90151ce25
  1. 4
      src/phicli

4
src/phicli

@ -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…
Cancel
Save