Last modified: 2014-09-25 18:55:52 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 T31780, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29780 - Implement a way to set user group permissions per namespace
Implement a way to set user group permissions per namespace
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: Future release
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 29781
  Show dependency treegraph
 
Reported: 2011-07-08 21:59 UTC by Krinkle
Modified: 2014-09-25 18:55 UTC (History)
11 users (show)

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


Attachments

Description Krinkle 2011-07-08 21:59:28 UTC
Split off bug 14801: The ability to set permissions per namespace.

* Proposed syntax:
  $wgGroupPermissions['sysop']['deletedhistory'] = array( NS_FILE => true );
* Still accept and maintain direct boolean values for the rights.
* userCan-check functions will return true if the required right is set to true or if value in the namespace-index of the array is true.
Comment 1 Krinkle 2012-02-07 18:19:11 UTC
I'm proposing this for 1.20

It's been attempted last year by Bryan but it wasn't good enough for some reason, I think it is not too much asked to make this a milestone 1.20

The community has requested and voted about this in *2008* (see bug 14801), and it's probably the lowest hanging fruit we have to make commons' admins life a whole lot easier (it's a relatively easy thing to do and will have a huge impact on Commons (right now image reviewers have to manually contact local admins for every file separately and that's no way to work (especially since it takes for ages to get in touch with one and then the usual controversy of them having to publicly undelete it for a commons admin to look at and then re-delete it), as a result the files are added to a giant pile for later)..
Comment 2 Krinkle 2012-04-12 15:12:46 UTC
(In reply to Bryan.TongMinh in bug 14801 comment #40)
> > > I would prefer this to have this dependant of a Title->userCan(), and having a
> > > way to set per namespace $wgGroupPermissions in a sane way.
> > 
> > We are talking about global groups, so $wgGroupPermissions seems irrelevant.
> > Your suggestion though would imply implementing per-namespace group permission
> > support in CentralAuth.
> > 
> > On an unrelated note a sane way for $wgGroupPermissions to support
> > per-namespace permissions is to allow an array as argument, e.g.
> > 
> >  $wgGroupPermissions['sysop']['deletedhistory'] = array( NS_FILE => true );
> > 
> > In any case I think setting permissions per-namespace is the way to go, rather
> > than creating per-namespace permissions.
> 
> I agree. So the userright-key in the user-group array in $wgGroupPermissions is
> either boolean or an array of namespace-ids with booleans.

Although I agree making the rights namespace-settable is better than introducing new rights, doing it the way you describes above does bring a problem with compatibility.

It becomes very hard for extensions to set them because local wikis may have other settings that don't count on this, and vica-versa. Doing this from a hook instead (where it would allow the permission until if an extension returns false because on the permission-key and a $Title object) may be more scalable and easier compatibility wise.

Maybe something to consider :)
Comment 3 Mark A. Hershberger 2012-09-28 19:00:40 UTC
1.20 release is imminent, pushing

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


Navigation
Links