Extension:GlobalUserGroups (Wikiunity)/code

__NOINDEX__

Code changes

 * /includes/specials/SpecialUserrights.php (indispensable)
 * /includes/LogPage.php (should be changed so the user rights log entries of global membership changes (Special:Log/gblrights) looks like the log of local membership changes (e.g. ›changed group … from Wikiunity Helper to Wikiunity Helper and Global Check user‹ instead of ›changed group … from helper to helper, checkuser-global‹))
 * /includes/specials/SpecialListusers.php (could be done so all groups are alphabetically ordered (global rights are not every shown at end))

Some things
On Wikiunity extensions are enabled or disabled by variables. AbuseFilter → $mweAbuseFilter, GlobalUserGroups → $mweGlobalUserGroups, .... There are a few test and developing wikis where GlobalUserGroups are not allowed for any reasons. A Wikiunity Staff member cannot add himself to the Staff group as local when the GlobalUserGroups extension is enabled. If disabled, he/she doesn't have any rights. Wikiunity Staff members don't got phpMyAdmin access. To resolve the problem we automatically add developers in the $wgGlobalUserGroupsAddStaffLocalIfDisabled-Array to the local user_groups table as Staff members and remove them from the local table if GlobalUserGroups extension has been enabled again. Non-staff members which are in the Array will not be added because it checks if the user is actually staff member in the global user rights table (global_user_groups).