Page MenuHomePhabricator

Customize Some user rights for Hindi WIki
Closed, ResolvedPublic

Description

Author: mayurdce

Description:
As per our local consensus-http://hi.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF%E0%A4%AA%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE:%E0%A4%A8%E0%A4%AF%E0%A5%80_%E0%A4%B8%E0%A5%81%E0%A4%B5%E0%A4%BF%E0%A4%A7%E0%A4%BE%E0%A4%8F%E0%A4%81, Please customize following rights

#for enable editprotect user Group and file mover group as per.

'editprotected' => array( 'editprotected' => true, 'rollback' => true, 'browsearchive' => true, 'delete' => true, 'undelete' => true, 'rollback' => true, 'browsearchive' => true, 'deletedtext' => true, 'deletedhistory', 'patrol' => true, 'patrol' => true, 'autopatrol' => true, 'autoreview' => true, 'review' => true, 'movefile' => true ),

'filemover' => array( 'movefile' => true ),

#Add and removal of these editprotected, filemover and reviewer group should be as

'bureaucrat' => array('editprotected', 'filemover' ),
'sysop' => array('Reviewer',),

Regards
Mayur


Version: unspecified
Severity: enhancement

Details

Reference
bz29956

Event Timeline

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

mayurdce wrote:

Plz make changes as following-

'editprotected' => array( 'editprotected' => true, 'patrol' => true, 'autopatrol' => true, 'autoreview' => true, 'review' => true, 'upload_by_url' => true, 'ipblock-exempt' => true, 'autopatrolother' => true, 'patrolother' => true, 'validate' => true, 'patrolmarks' => true, 'suppressredirect' => true ),
'filemover' => array( 'movefile' => true ),
'Patroller' =>  array( 'patrol' => true, 'autopatrol' => true, 'autopatrolother' => true, 'unwatchedpages' => true, 'patrolother' => true, 'patrolmarks' => true ),
'sysop' => array( 'autopatrolother' => true, 'patrolother' => true ),

Adding and removing rights

'bureaucrat' => array('editprotected', 'filemover' ),
'sysop' => array('Reviewer'),

(In reply to comment #1)

Plz make changes as following-

'editprotected' => array( 'editprotected' => true, 'patrol' => true,

'autopatrol' => true, 'autoreview' => true, 'review' => true, 'upload_by_url'

> true, 'ipblock-exempt' => true, 'autopatrolother' => true, 'patrolother' =>

true, 'validate' => true, 'patrolmarks' => true, 'suppressredirect' => true ),

'filemover' => array( 'movefile' => true ),
'Patroller' =>  array( 'patrol' => true, 'autopatrol' => true,

'autopatrolother' => true, 'unwatchedpages' => true, 'patrolother' => true,
'patrolmarks' => true ),

'sysop' => array( 'autopatrolother' => true, 'patrolother' => true ),

Adding and removing rights

'bureaucrat' => array('editprotected', 'filemover' ),
'sysop' => array('Reviewer'),

Done

mayurdce wrote:

hmm, some mistakes happened I wanted the whole setting for addition and removal as -

'wgAddGroups' => array(

'+hiwiki' => array(
    'bureaucrat' => array( 'interface_editor', 'flood', 'abusefilter', 'eliminator', 'import', 'transwiki', 'accountcreator', 'editprotected', 'filemover'

),

    'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'Patroller', 'reviewer' ),
),

'wgRemoveGroups' => array(
'+hiwiki' => array(

    'bureaucrat' => array( 'sysop', 'interface_editor', 'flood', 'abusefilter', 'eliminator', 'import', 'transwiki', 'accountcreator', 'editprotected', 'filemover' ),
    'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'Patroller', 'reviewer' ),
),

As sysops are not able to add Patroller group, I think it was due to (Patroller & patroller) first Capital letter.

mayurdce wrote:

It would be better if you could plz set add and remove setting as below-

'wgAddGroups' => array(

'+hiwiki' => array(
    'bureaucrat' => array( 'interface_editor', 'flood', 'abusefilter',

'eliminator', 'import', 'transwiki', 'accountcreator', 'editprotected',
),

'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled',

'Patroller', 'reviewer', 'filemover' ),

),

'wgRemoveGroups' => array(
'+hiwiki' => array(

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

'abusefilter', 'eliminator', 'import', 'transwiki', 'accountcreator',
'editprotected' ),

'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled',

'Patroller', 'reviewer','filemover' ),

),

Regards
Mayur

When you give things in this format, while settings already exist, just make it a pain

If you don't make it explicit what you want, it's hard to know - we're not mind readers

mayurdce wrote:

(In reply to comment #5)

When you give things in this format, while settings already exist, just make it
a pain

If you don't make it explicit what you want, it's hard to know - we're not mind
readers

Sorry for that. I thought that would be easier for you that why i gave the required config.But i forgot to give config for addition and removal of groups that sucked your and our time.I shall keep it mind in future.Thank you

(In reply to comment #6)

(In reply to comment #5)

When you give things in this format, while settings already exist, just make it
a pain

If you don't make it explicit what you want, it's hard to know - we're not mind
readers

Sorry for that. I thought that would be easier for you that why i gave the
required config.But i forgot to give config for addition and removal of groups
that sucked your and our time.I shall keep it mind in future.Thank you

Cheers :). Sorry if my message above sounded a bit angry

When the files aren't being changed for some other improvements, I'll finish this off for you again

mayurdce wrote:

(In reply to comment #8)

Done

Thank you Reedy!