realms-wiki icon indicating copy to clipboard operation
realms-wiki copied to clipboard

Prevent users/anons from deleting pages (Or have an administrative group)

Open antonizoon opened this issue 8 years ago • 0 comments

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:

  1. Anonymous users can edit, but cannot delete pages
  2. 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.

antonizoon avatar May 24 '16 06:05 antonizoon