It'd be protected/restricted to users with the "gadgets-edit" right (a bit like NS_MEDIAWIKI and editinterface). I'm not quite sure to which group (if any) it should be assigned by default.
Traditionally and due to backwards-compatibility it could be assigned to the sysop-group (that is, in the current system sysops can edit gadgets since they have editinterface and gadget resources are stored in MediaWiki:Gadget-<name>.js).
On the other hand, perhaps we could start a new group, like "js developers" or "gadget artists", something like that (probably needed in the long run anyway).
Question being: Is the average sysop supposed to able to modify gadget resources ? Note that the gadgets-edit
user right is not the same as the "gadgets-definition-edit
" user right. The latter is for the management of the gadgets through Special:Gadgets (such as toggling "load by default") which is more of a sysop-thing. gadgets-edit
would (just) be for editing the gadget resource wiki-pages in the Gadget-namespace.