#226 add check for user's existing shares. If no shares, print out "user has no shares"
thanks @RXWatcher
This commit is contained in:
parent
36aa2dd3a3
commit
5bf7925585
@ -457,8 +457,10 @@ if __name__ == "__main__":
|
||||
kill_session(user, kill)
|
||||
time.sleep(3)
|
||||
unshare(user, sections_lst)
|
||||
elif opts.unshare:
|
||||
elif opts.unshare and user_shares_lst:
|
||||
unshare(user, sections_lst)
|
||||
elif opts.unshare and not user_shares_lst:
|
||||
print('{} has no libraries shared...'.format(user))
|
||||
elif kill:
|
||||
kill_session(user, kill)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user