scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
831 stars 90 forks source link

Creation of access roles on pages #116

Open bhuvanrawal opened 8 years ago

bhuvanrawal commented 8 years ago

To allow access paths for pages and users. Access can have the following format: <page url (key)> -> write access, read access home -> Admin, Public So my home page will be editable by Admin and can be viewed by public.

This way as a writer I will have an option to stage a note and mark it private and keep saving the wiki and when writeup is completed the read access can be changed to public.

Users will have access roles defined in some table.

Another example - if a page is created with access role Admin,Admin on a page, then only users with access role Admin can view it and edit it.

The most restrictive access role can be 'Private' where only the owner of the page can view/edit the file.