Page MenuHomePhabricator

An option to disable fancy signature for a user group
Closed, DeclinedPublic

Description

Author: wyvernoid

Description:
Currently the fancy signature feature is enabled for everyone, and template transclusion etc. are allowed in it (NOT on wikimedia sites but other mediawiki setups, I mean). This can sometimes be annoying since users have the chance to make use of this feature to include a lot of code or external links in the signature.

So, is it a good idea to have an option (configuration setting) to disable the fancy signature feature? Or, if possible, an assignable user right (for example disallow fancysig for '*' but allow it for 'autoconfirmed').


Version: unspecified
Severity: enhancement

Details

Reference
bz15160

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:20 PM
bzimport set Reference to bz15160.
bzimport added a subscriber: Unknown Object (MLST).

WONTFIX adding this a new core ability. This workaround in LocalSettings should work:


$wgGroupPermissions['user']['fancysig'] = false;
$wgGroupPermissions['sysop']['fancysig'] = true;
$wgExtensionFunctions[] = 'efDisableFancySig';

function efDisableFancySig() {

global $wgUser;
if( !$wgUser->isAllowed( 'fancysig' ) ) {
    global $wgHiddenPrefs;
    $wgHiddenPrefs[] = 'fancysig';
}

}