realms-wiki
realms-wiki copied to clipboard
Prevent users/anons from deleting pages (Or have an administrative group)
In the current system, normal and even just anonymous users can delete pages. It is relatively easy to fix a revision or delete spam pages, but it is not so easy to restore deleted pages, without picking in the git repo.
While locking pages helps, that restricts everyone from editing.
Thus, here's some proposed solutions: have an option to restrict certain users from deleting pages. Here are some scenarios:
- Anonymous users can edit, but cannot delete pages
- Anonymous and normal users can edit, but cannot delete pages.
This might also need the implementation of an Administrator group. I think the first account, UID=0 or 1, would suffice as the first admin (the way Gogs does it). Thus, maybe only the administrator would have the ability to delete pages.