Set
$wgGroupPermissions['user']['userrights'] = true;
to allow users to add any rights to their account. After then, immediately revoke the permission by removing the line.