[03:43:55] @abaddriverlol @posix_memalign well, it's hideous, but, got the idea working [03:43:57] mostly [03:44:42] I have it working that having the editallcustomprotected right allows access to all the custom levels I made, but it's not working with global rights yet [03:45:26] I think that may be because of load order, if setting a hook in GlobalSettings.php is loaded before CentralAuth [03:45:50] https://test.mirabeta.org/wiki/Protection_test?action=protect feel free to test while it's there, rollbacker group has the custom all right [03:46:13] (will prob have to add that to restricted rights later) [03:47:10] [1/15] ```php [03:47:10] [2/15] +$wgAvailableRights[]= 'editallcustomprotected'; [03:47:10] [3/15] +$wgHooks['UserGetRights'][] = static function ( $user, &$rights ) { [03:47:11] [4/15] + if (in_array( 'editallcustomprotected', $rights )) { [03:47:11] [5/15] + $rights[] = 'editalphaprotected'; [03:47:11] [6/15] + $config = MediaWikiServices::getInstance()->getMainConfig(); [03:47:11] [7/15] + if ( count($config->get('RestrictionLevels')) > 4 ) { [03:47:12] [8/15] + foreach ($config->get('RestrictionLevels') as $right) { [03:47:12] [9/15] + if (!in_array($right, ['', 'user', 'autoconfirmed', 'sysop'])) { [03:47:12] [10/15] + $rights[] = $right; [03:47:13] [11/15] + } [03:47:13] [12/15] + }} [03:47:14] [13/15] + } [03:47:14] [14/15] +}; [03:47:15] [15/15] ``` [14:06:19] If no one has issue with this approach I’ll start working on putting this in a draft MM Pr [14:06:26] After my laptop stops melting itself [14:06:32] It was smelling very interesting yesterday [14:07:01] what an amazing photo [14:07:24] Indubitably [14:07:36] I really hope MM hooks just run after CA [14:08:10] rn im getting giggity for when (hopefully) citizen passes another security review [14:20:14] have you seen the new citizen preferences menu? [14:20:26] i have [14:20:43] first on the pzwiki