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

       Web browser: ---
            Bug ID: 48764
           Summary: Setting rights to userright1 OR userright2
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: Gadgets
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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.

-- 
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