Last modified: 2013-07-12 23:53:25 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 T50764, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48764 - Setting rights to userright1 OR userright2
Setting rights to userright1 OR userright2
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Gadgets (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-24 06:15 UTC by Dalba
Modified: 2013-07-12 23:53 UTC (History)
3 users (show)

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


Attachments

Description Dalba 2013-05-24 06:15:47 UTC
I couldn't find a way to set a gadget to be enabled for users with right1 OR right2.

I want to enable Twinkle for both rollbackers and patrollers. If I use

rights=patrol,rollback

The gadget will be enabled only for users who have both rights simultaneously.
I even tried defining the gadget twice:

* Twinkle[ResourceLoader|rights=rollback|dependencies=mediawiki.util,jquery.ui.dialog,jquery.tipsy]|morebits.js|morebits.css|Twinkle.js
* Twinkle[ResourceLoader|rights=patrol|dependencies=mediawiki.util,jquery.ui.dialog,jquery.tipsy]|morebits.js|morebits.css|Twinkle.js

But only the last definition will be effective. (In the example above, only users with patrol right will see twinkle in their preferences)

It would be helpful if it was possible to define rights using some Boolean operators instead of comma-separated list.
Comment 1 Platonides 2013-07-12 23:53:25 UTC
You could create an empty Twinkle2 gadget which depends on Twikle, but what you want should be possible to do.

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


Navigation
Links