TiddlyWiki5
TiddlyWiki5 copied to clipboard
MWS: Users with read only access can make changes
Steps to reproduce:
- Start with a fresh install of MWS
- Run
npm installandnpm start - Visit http://127.0.0.1:8080/ in a browser
- Click the button "Add Admin Account"
- Enter suitable details for an admin account and click "Add User"
- Choose "Manage Roles" and create a new role called OPERATOR
- Choose "Manage Users" and then add the details of a new secondary user account
- Edit the newly created user to it to the role OPERATOR
- Click the home button
- Click the padlock icon next to the wiki "recipe-tau" at the URL http://127.0.0.1:8080/admin/acl/recipe-tau/bag-alpha
- Assign READ permission to the role OPERATOR for both the recipe and the bag as shown in the illustration below
- In a different browser, visit http://127.0.0.1:8080/ and login as the secondary user
- As the secondary user visit the wiki http://127.0.0.1:8080/wiki/recipe-tau
- Create a new tiddler and observe that it is saved back to the server (this can be verified by refreshing the page). I would have expected attempts to write to the bag to fail given the permissions specified
cc @webplusai
I think the issue is resolved, but we do get a "sync error" now. See screenshot.
I think we need a special handling here and implement a proper "read only" mode for the TW UI
I'm adding this to an ACL checklist issue.
https://github.com/TiddlyWiki/MultiWikiServer/issues/22
This issue should be closable.