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

--- Comment #2 from mybugs.m...@gmail.com 2011-05-18 12:29:56 UTC ---
(In reply to comment #1)
> I'm not a JS expert, but I would think you could already do this inside the
> actual script.  The gadget could should be able to pull the "wgUserGroups":
> ["sysop", "*", "user", "autoconfirmed"] that shows up on all sysop's page
> loads... or they could just pull something from the API if that doesn't work.

Yes, but in this case, if the user doesn't have just one of those four rights,
the script would not be shown at all on [[Special:Preferences]] because the
function isAllowed() checks for the presence of all rights:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Gadgets/Gadgets_body.php?annotate=86211#l312

In other words, although we can indicate that a user isAllowed() if he has
(this AND that) rights, we don't have a way to indicate e.g. that he
isAllowed() if he has (this OR that) rights.

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

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to