Last modified: 2007-01-23 20:10:15 UTC
Sometimes you want to have scripts funtion slightly different if you are admin or not, and it's sometimes rather diffcult to do that. So I propose that a variable is added, for example "wgUserGroup", that contain the usergroup(s). the only problem is that if it only should have the "highest" group, or if it should contain an array of all groups, for example: wgUserGroups = [ 'autoconfirmed' , 'sysop' ];
Created attachment 3101 [details] Patch implementing the functionallity Have made an simple patch that will implement the wanted feature
Applied in r19524.
Created attachment 3126 [details] updated patch seems like User::getGroups() don't reply with all we want, so I have changed it to User::getEffectiveGroups();
Applied as r19611