Fernando Correia a écrit :
Maybe with a hook to the userCan event.
<usual disclaimer about using mediawiki for what it was not intended for, whatever it
is>
same thing but in Localsettings.php add this :
# Set userCan hook
$wgHooks['userCan'][] = 'wfSetEditRestrictions';
# Edit restrictions
function wfSetEditRestrictions( &$title, &$user, $action, &$result ) {
if( $action != 'edit' ) {
return;
}
if ( $title->mNamespace === NS_USER){
if ($user->getName() === $title->getText()) {
$result = true;
} else {
$result = false;
}
}
}
</usual disclaimer>