[03:08:04] hi all o/. I have a MediaWiki extension question. I wonder if this is the correct place to ask? I have a problem hiding my custom action in the dropdown menu for anonymous users. More detail of my question with screenshot can be found at https://stackoverflow.com/questions/69334781/how-to-hide-custom-actions-for-anonymous-users-in-the-mediawiki-actions-dropdown [03:29:16] landau[m], you said you tried creating a user right and removing it from all but logged in users. That's usually going to be the best way to do this. Can you explain where you encountered problems? [05:11:57] don't add it to the dropdown until after you've verified the user has the rights to use it [05:12:10] (aka do a permission check in the hook that adds it to the UI) [05:58:04] "programming accuracy was most strongly predicted by fluid cognitive abilities; whereas, learning rate was most strongly predicted by the MLAT, a test that is largely composed of declarative and associative memory-based tasks" https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7051953/ [06:57:36] "landau, you said you tried..." <- AntiComposite: thank you for the reply! What I did was to simply add `$wgGroupPermissions['*']['mycustomaction'] = false;` to LocalSettings.php. I assume that the `mycustomaction` is automatically created when I register my custom action in my extension.json's `Actions` field. If I understand your statement correctly, I also have to create this custom right; it's not automatic. [06:59:23] "(aka do a permission check in..." <- moonmoon: thank you for the reply! I don't use hooks to add my action to the dropdown menu. I simply specify it in my extension's extension.json. I will look into the dropdown hook. [07:47:22] moonmoon: indeed. I do have something in my extension Hooks.php that actually adds to the dropdown (I wasn't aware of its existence because I build up my extension on top of MediaWiki boilerplate extension). When I comment out the hook content, the action disappears. Which mean I can just use PermissionManager to check the user and make it enable/disable depending on the user. [10:57:21] I solved the problem according to moonmoon 's suggestion 🎉. In the... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/266a783b9ad8a1e8331abb2a9308f00d06879d60)