User removed themselves

A user has removed himself from access to a folder. Under “Activity” for this folder it is reported “>>user<< removed themselves”.

  1. What is the easiest way to undo this, so that the user can use the folder again (I have admin rights)?
  2. Is there a way to prevent this from happening for all users?
    Thx!