Page MenuHomePhabricator

enable editinterface user group on hindi wiki and grant bureacrats to add/remove this group
Closed, ResolvedPublic

Details

Reference
bz24957

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:07 PM
bzimport set Reference to bz24957.
bzimport added a subscriber: Unknown Object (MLST).

To help with translation of the interface, it'd be better to get people to sign up at http://translatewiki.net/wiki/Main_Page and request translator rights. All MediaWiki interface messages, many MediaWiki extensions and various other applications can be translated there...

mayurdce wrote:

yes but to install some gadgets and to edit .js mediawiki files we need this. but thank you for telling us about this translation link, hopefully this will decease some burden

Are you sure you want to freely give it ? Note that having editinterface allows to write malicious javascript which could do ehm... nasty things.

mayurdce wrote:

No thats why we have asked also to remove this group by bureacrat.fiest of all we will give this right for some period to a trusty user.and if he makes any stupid mistakes bureacrat may simply revoke his editinterface right.

If you are able to catch him...
The evidence will be in the edit history, but may be hard to find out there was an exploit added.

mayurdce wrote:

if you are saying that he may edit php files too then it may be a worse case
. Actually if a user is technically sound then we may promate him to this group to improve or solve our .js files. some experts from other wikis may also be called. i think it is a good for improvement of gadgats and our common.js and moonobook files.

No, they can't edit php files. But they can change the .js file which your sysops will then use.
For example they could add a script that made the sysops delete any page they visited. It is a poweful right, you should take that into account before you adding anyone to that group.

mayurdce wrote:

Actually this group membership will be given to another wiki technically sound admins.There will be very less chance to give it to any new and less experienced user.because most of our scripts and gadgats are taken from english and french wiki.so their admins may help us regarding these issue.if a technically sound user join hindi wiki then we may also promote him to this category for some period.Offcourse it is a very powerfull script and its right will bee given to any technically sound aand trusty user.Regards

jeluf wrote:

Done.

Index: InitialiseSettings.php

  • InitialiseSettings.php (revision 1080)

+++ InitialiseSettings.php (working copy)
@@ -5429,6 +5429,7 @@

	    'reviewer' => array ( 'patrol' => true, 'autopatrol' => true ),
	    'autopatrolled' => array( 'autopatrol' => true ),
	    'editprotected' => array( 'editprotected' => true ),

+ 'interface_editors' => array( 'editinterface' => true )

),
'hrwiki' => array(
	'patroller' => array( 'patrol' => true, 'autopatrol' => true, 'rollback' => true ),

@@ -5911,6 +5912,7 @@

		'sysop' => array( 'patroller', 'autopatrolled' ),
    ),
    '+hiwiki' => array(

+ 'bureaucrat' => array( 'interface_editors', ),

	    'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'editprotected', 'abusefilter', 'patroller', ),
    ),
    '+hrwiki' => array(

@@ -6171,7 +6173,7 @@

		'sysop' => array( 'patroller', 'autopatrolled' ),
    ),
    '+hiwiki' => array(
  • 'bureaucrat' => array( 'sysop' ),

+ 'bureaucrat' => array( 'sysop', 'interface_editors', ),

	    'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'editprotected', 'abusefilter', 'patroller', ),
    ),
    '+hrwiki' => array(

mayurdce wrote:

however we are able to add/remove this group. and this group is being shown special:listuserright. but this is bening not shown by user list of interface editors (http://hi.wikipedia.org/w/index.php?title=%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7%3AListUsers&username=&group=interface_editors&limit=50) and interface editors are not able to edit interface.

mayurdce wrote:

this change is not working we are not able to make interface editors.and this group is being shown
special:listuserright. but this is bening not shown by user list of interface
editors
(http://hi.wikipedia.org/w/index.php?title=%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7%3AListUsers&username=&group=interface_editors&limit=50)
and interface editors are not able to edit interface.

jeluf wrote:

Done.

Index: InitialiseSettings.php

  • InitialiseSettings.php (revision 1085)

+++ InitialiseSettings.php (working copy)
@@ -5433,7 +5433,7 @@

	    'reviewer' => array ( 'patrol' => true, 'autopatrol' => true ),
	    'autopatrolled' => array( 'autopatrol' => true ),
	    'editprotected' => array( 'editprotected' => true ),
  • 'interface_editors' => array( 'editinterface' => true ),

+ 'interface_editor' => array( 'editinterface' => true ),

	    'flood'  => array( 'bot' => true ),
    ),
    'hrwiki' => array(

@@ -5917,7 +5917,7 @@

		'sysop' => array( 'patroller', 'autopatrolled' ),
    ),
    '+hiwiki' => array(
  • 'bureaucrat' => array( 'interface_editors', 'flood', ),

+ 'bureaucrat' => array( 'interface_editor', 'flood', ),

	    'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'editprotected', 'abusefilter', 'patroller', ),
    ),
    '+hrwiki' => array(

@@ -6178,7 +6178,7 @@

		'sysop' => array( 'patroller', 'autopatrolled' ),
    ),
    '+hiwiki' => array(
  • 'bureaucrat' => array( 'sysop', 'interface_editors', 'flood', ),

+ 'bureaucrat' => array( 'sysop', 'interface_editor', 'flood', ),

	    'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'editprotected', 'abusefilter', 'patroller', ),
    ),
    '+hrwiki' => array(

jeluf wrote:

Now this was a funny bug.

I've copied the config from another wiki. I've also reused the group name used on that wiki.

BUT: It never worked on the wiki from which I've copied the config.

Group names must not be longer than 16 characters. "interface_editors" has 17. That can't work.

In order to fix it, I've now renamed the group to "interface_editor". I hope this will work now.

See also bug 15285