Last modified: 2009-06-19 22:25:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20902, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18902 - Implement user permissions for saving books to the wiki
Implement user permissions for saving books to the wiki
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: PediaPress Development Team
http://en.wikipedia.org/w/index.php?o...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-24 17:58 UTC by Happy-melon
Modified: 2009-06-19 22:25 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Happy-melon 2009-05-24 17:58:14 UTC
After discussion on enwiki, we have concluded that we do not find the ability for indiscriminate users to save books to the wiki to be constructive.  We wish to disable on-wiki saving for at least the majority of users. 

The nicest and most flexible way to develop the extension is to create new permissions, say 'savebooktouserspace' and 'savebooktoprojectspace', that can be assigned to arbitrary groups as with other permissions.  This should replace the hardcoded restriction to */autoconfirmed, respectively.  Naturally, the "save book" box on [[Special:Book]] should not appear if the user is not able to save in any location.
Comment 1 Stifle 2009-05-28 14:49:56 UTC
However, downloading as PDF and requesting print from PediaPress is, of course, fine :)
Comment 2 PediaPress Development Team 2009-06-12 08:58:57 UTC
As of r51151, the MediaWiki rights needed to save collections in the user or the (configurable) "community" namespace can be changed via two global variables $wgCollectionSaveAsUserPageRight and $wgCollectionSaveAsCommunityPageRight. These rights can be configured to be e.g. "autoconfirmed" or turned of by setting them to null.
Comment 3 PediaPress Development Team 2009-06-12 10:41:45 UTC
Needs to be checked on the PHP side, too.
Comment 4 PediaPress Development Team 2009-06-15 09:43:33 UTC
Implemented in r51870.
Comment 5 Brion Vibber 2009-06-19 22:09:01 UTC
r51870/r51943 changed the permissions from flexible strings to hardcoded permission key values:

$wgAvailableRights[] = 'collectionsaveasuserpage';
$wgAvailableRights[] = 'collectionsaveascommunitypage';

By default no user will have these rights.


Note I've cleaned up the README.txt in r52180; the entries for the previous variables were inadvertently left in.
Comment 6 Fred Vassard 2009-06-19 22:25:49 UTC
InitializeSettings has been updated and deployed to reflect this change.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links