MediaWiki: Page editing is only allowed by the creator or with approval

I try to restrain editing in the Wiki (using MediaWiki), which I create as an internal project for my company.

We would like page authors to not specify either of the following two options:

  • No one except the creator of this page can edit the contents of this page.
  • Anyone can edit the contents of this page, but there must be the approval of the creator of the page before the changes are visible (whether by mail, directly on the wiki or anything else - it does not matter).

If the creator does not specify either of the two parameters, someone can edit the page and the changes are immediately displayed (default behavior).

I was browsing the web, but I did not find a ready-made solution for this. Thanks to the release of the LocalSettings file, we were able to create great custom content, but not that.

Is there a solution for this feature?

+6
mediawiki edit rights
source share
2 answers

I do not know the extension that will simplify this.

I think that you could make an extension like Flagged Revs or Approved Revs and make it use the username instead of using groups as the determining status of the approval. It may not be too complicated. It makes sense?

+2
source share

I had the same problem as you, and now I fixed it, here is the solution:

I use http://www.mediawiki.org/wiki/Extension%3aApproved_Revs to protect the article, but did not fulfill my need, allowing the user to modify the currently approved revision of the article, and therefore the change immediately reflected on the main page, so I’m a little hacked it, basically you only need one change

go to ApprovedRevs / ApprovedRevs .hooks.php

and find the following code:

static public function setLatestAsApproved( &$article , &$user, $text, $summary, $flags, $unused1, $unused2, &$flags, $revision, &$status, $baseRevId ) { 

this function declaration immediately after adding the following code:

 return false; 

and it will work the way you want it to be (i.e. the change you made will not be reflected until you approve it)

0
source share

All Articles