HandWiki:Help/AccessControl
Protecting from editing and viewing
HandWiki allows for protecting pages from editing and viewing. To protect a page, you need to add the following statement at the top of the page:
where "MyGroup" is a wiki page that contains a list of usernames that should have permission to edit this page. This wiki page should be created inside a special namespace "Access:" like this:
https://handwiki.org/wiki/Access:MyGroup
Generally, the "MyGroup" page can have any name, as long as you remember it. You should write the following lines of text in this page:
* John Smith * Anna Corke * Steve Locker (ro)
Each username appears as a list item. We added "(ro)" after Steve Locker. This indicates that Steve Locker can read this wiki, but not edit it. You should "accesscontrol" tag with MyGroup between to make sure that this file is protected for other non-group people.
Now you can save this page. It should look like this:
- John Smith
- Anna Corke
- Steve Locker (ro)
At the top of this page, you will see the red message "page is protected". Now you can add the line with MyGroup embedded inside the tag "accesscontrol" on any page you want to protect.
Note that you can place several groups inside the "accesscontrol" tag, but you should separate them with a comma, i.e. they should look like this:
MyGroup1,MyGroup2 and create 2 pages MyGroup1 and MyGroup2 with the names inside the "Access:" namepage.
You can see all groups that have protected their pages using the access page.
Author protected pages
HandWiki allows page authors to protect pages from non-authors on a page-by-page basis. Registered users have the 'authorprotect' permission. To protect a page, first create a page. Then use the top menu ("...") and select "protect". The page will be protected from editing for other users.
Note that this protection is only applied in special cases (for books, manuals, lectures, monographs). All articles under the CA 3.0 license cannot be author protected.
Page protection for non-DataMelt members
Use "ifauth" to protect code for non-members of the DataMelt project:
This part is protected
F="OK";
As an example, for the jLearn port, it will look like this:
jPort