https://bugzilla.wikimedia.org/show_bug.cgi?id=30708

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|need-review, patch          |
                 CC|                            |[email protected]

--- Comment #2 from Krinkle <[email protected]> 2011-09-12 23:07:32 UTC ---
Depending on where you would use/need this for, I'm not sure this is a good
idea.

There is a difference between MWNamespace::isWatchable/isMovable returning
true, and a user being allowed to move or watch a page in a certain namespace.

For one, the user may not have the appropriate user right. Secondly, custom
made namespaces (ie. Portal: ) are not included in these checks, since
extensions cannot hook into this.

For example, ResourceLoader2 is introducing a namespace "Gadget definition",
which, just like the Category-namespace in core, can not be moved. However, it
would show here is moveable since the hook that the extension tabs into is not
used here. MWNamespace is pretty much for core namespaces only.

So, since custom namespaces and user rights are not considered. It'd suggest
WONTFIX-ing this. I do, however, welcome an ApiUserCan-ish module (which is
passed a title and a user right). This module could also be used to check if a
file can or can't be uploaded. As well as many other things.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to