The controls found on the Document Properties: Security page and the Sheet Properties: Security page make it possible to disallow the access to certain menu items and prohibit changes in the layout. If these settings are to be used as a truly protective measure, it is important that the document users are logged in as USER. Anyone logged in as ADMIN can change the security settings at any time.
A user that has opened the document with USER rights does not have the Security pages in the Properties dialogs.
I just tried with the attached .qvw, this is the section access
LOAD * INLINE [
ACCESS, USERID, PASSWORD
admin, admin, admin
user, user, user
open the .qvw with the different users (admin, user) to see the difference
with admin you can open the security tab (menu --> settings --> document properties --> security), edit the script, add sheets, etc....
with user you can't edit the script, add sheets, etc.....