Last modified: 2014-01-04 19:54:06 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 T28377, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26377 - register user rights only if wgNoticeInfrastructure is true
register user rights only if wgNoticeInfrastructure is true
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: fundraising
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-20 20:29 UTC by Umherirrender
Modified: 2014-01-04 19:54 UTC (History)
2 users (show)

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


Attachments

Description Umherirrender 2010-12-20 20:29:51 UTC
The special page [[Special:CentralNotice]] is only available on wikis with $wgNoticeInfrastructure = true. It is possible to register the corrosponding user rights together with the special page? There is no need for unused user rights on wikis without the special page.

The user rights are shown on all wikis, but the special page only on [[meta:]] ($wgNoticeInfrastructure = ($wgDBname == 'metawiki')). Moving the user rights within that if, will fix that. Or it is better to change the setting of wmf and set the user rights to false on non-metawiki?

Thanks.
Comment 1 Ryan Kaldari 2010-12-20 20:54:23 UTC
What user rights are you referring to? I wasn't aware that there were any special user rights associated with CentralNotice.
Comment 2 Umherirrender 2010-12-21 19:29:51 UTC
The user rights "centralnotice-admin" and "centralnotice-translate" in CentralNotice.php.
Comment 3 Ryan Kaldari 2011-01-06 02:38:54 UTC
fixed in r79705 and r79701.
Comment 4 Umherirrender 2011-01-07 09:51:54 UTC
revert with r79780.

Why it is possible to add special pages corrosponding to wgNoticeInfrastructure, but not user rights?

Have you set the globals at the begin of the function? $wgSpecialPages is there.
Comment 5 Ryan Kaldari 2011-01-07 18:07:08 UTC
I'll take a look at this again. I'm not sure why it failed, but may have something to do with the loading order. The user right (in this case) needs to be loaded after the config files are read (in order to fix this bug), but perhaps inside the extension functions is too late for it to have effect.
Comment 6 Umherirrender 2014-01-04 19:54:06 UTC
This is still confusing, when the local [[Special:ListGroupRights]] shows the user right 'centralnotice-admin' for sysop, but [[Special:CentralNotice]] does not exists locally.

Would be nice, when someone can have a look. Thanks.

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


Navigation
Links