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

       Web browser: ---
             Bug #: 29028
           Summary: Make Gadgets rights more flexible
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Gadgets
        AssignedTo: brightb...@gmail.com
        ReportedBy: mybugs.m...@gmail.com
    Classification: Unclassified


I was thinking about that new feature which allows some gadgets to be hidden
from [[Special:Preferences]] in the case the user doesn't have certain specific
privileges. Consider the following gadget definition:

*
Ajax_sysop[ResourceLoader|rights=patrol,rollback,markbotedits,delete]|Ajax_sysop.js

(for documentation of this gadget, see [[meta:User:Pathoschild/Scripts/Ajax
sysop]]). Although the gadget require all indicated privileges to be **fully**
functional, some users could benefit of parts of it even if they don't have all
the required permissions.

So, I was wondering if it would be possible to define "parts" of the gadgets
which would be loaded or not depending on whether the user has a specific right
or not. This way, if a user is able to "patrol" but not to "delete", it could
still use the script, although only the parts which are usable without the
missing rights.

Maybe an option to achieve this would be the possibility of associating rights
to specific ".js" pages instead of (or in addition to) the whole gadget module.
E.g.:

* Ajax_sysop[ResourceLoader]|Main code.js[rights=rollback,delete]|optional
stuff.js[rights=patrol,markbotedits]

Any thoughts?

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