Topic on Extension talk:Recent Changes Cleanup

Jump to navigation Jump to search
213.196.170.72 (talkcontribs)

We had the little problem that this extension only checks if someone has more than 500 edits, an administrator (sysop) is not able to access the special page. We solved it by this little change:

In the File RecentChangesCleanup_body.php change the Line 21 to Line 25:

 
if ( !($edit_count > $min_edit_count || $wgUser->isAllowed( 'recentchangescleanup' ))) {
  $wgOut->addHTML('<br>Access to this maintenance related page is limited to editors with atleast ' . $min_edit_count . ' edits or with RecentChangesCleanup right' );
  return;
}

And add following line to your extension settings (often your LocalSettings.php)

$wgGroupPermissions['sysop']['recentchangescleanup'] = true;

Craig131 (talkcontribs)

Doesn't work for me in 1.19.2. Anyone else know how to achieve this? I guess for now I will remove the limit altogether.

Edit: My bad, I made a mistake with your instructions. It works like a charm, thank you.

Reply to "Access to the SpecialPage as Sysop"