#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
34851652c5
commit
f90497fbd2
@ -457,8 +457,10 @@ if __name__ == "__main__":
|
|||||||
kill_session(user, kill)
|
kill_session(user, kill)
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
unshare(user, sections_lst)
|
unshare(user, sections_lst)
|
||||||
elif opts.unshare:
|
elif opts.unshare and user_shares_lst:
|
||||||
unshare(user, sections_lst)
|
unshare(user, sections_lst)
|
||||||
|
elif opts.unshare and not user_shares_lst:
|
||||||
|
print('{} has no libraries shared...'.format(user))
|
||||||
elif kill:
|
elif kill:
|
||||||
kill_session(user, kill)
|
kill_session(user, kill)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user