https://bugzilla.wikimedia.org/show_bug.cgi?id=14801

--- Comment #60 from Kunal Mehta (Legoktm) <legoktm.wikipe...@gmail.com> ---
I think restructuring the entire permissions system would be nice, but I doubt
anyone is planning to do that for the next few years.

So I think bawolff's comment 41 is the best and easiest way to move forward. I
uploaded a patch which changes Special:Undelete to check per-page restrictions,
allowing us to set per-namespace restrictions in the wmf-config:

$wgHooks['TitleQuickPermissions'][] = function ( Title $title, User $user,
$action, &$errors, $doExpensiveQueries, $short ) {
    return ( !in_array( $action, array( 'deletedhistory', 'deletedtext' ) ) ||
!$title->inNamespaces( NS_FILE, NS_FILE_TALK ) || !$user->isAllowed(
'globalimagereview' ) );
};

Then we just create a global group that has the "globalimagereview" userright.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to