Which file contain the user level rights?

hi,question 1 :
i updated the rights of a table in the level profile (advanced security) window. i added new rights on lookup tables. (without that, user saw several empty dropdown list).
i re-generated my project. it works fine on local. but i need to update/upload the prod server.
which file can i only upload to make that change available ? (instead of upload the whole project because there are too many tables, files…)
it looks like uploading only userlevelsettings.php works to update the rights (until the user login off/login to get applyed)Question 2 :
i noticed the phpmaker does not care about the new rights of user in real time. user must log-off and re-login to have the new right updated. it can be a danger if you need to revoke in the urgency some rights (imagine you give by mistake, the admin profil to a user or your give access to a sensible table…). is there a way to force log-off all the users ?Best regards

The answer for question 2 is very easy.Assume you’re using >= v2021, then simply put this following code in Page_Rendering server event:

    CurrentPage()->terminate("logout");

This will force all of users to be logged out.