mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-19 05:31:16 -05:00
Currently, 'hotpatch' and 'lockdown' are admin permissions, and 'console' is a console admin permission. In preparation for the admin/leader unification, I'm removing the hotpatch permission: - /memoryusage, /loadbanlist, /adddatacenters, /refreshpage, /loadbanlist have been moved from 'hotpatch' to 'lockdown'. This doesn't change anything, I'm just unifying the permission name. - /updateserver has been moved from 'hotpatch' to 'console'. /updateserver in combination with either hotpatch or lockdown can be used for arbitrary code execution, and is approximately as dangerous as any other console command. - /hotpatch, /savelearnsets have been moved from 'hotpatch' to 'console'. They're reasonably harmless, but they don't do anything without console access, so a non-console admin using them is nearly definitely some sort of mistake. `user.hasConsoleAccess` now also has a CommandContext function `this.canUseConsole` to handle its error message. |
||
|---|---|---|
| .. | ||
| chat-commands | ||
| chat-plugins | ||
| static | ||
| tournaments | ||
| chat-formatter.ts | ||
| chat.ts | ||
| config-loader.ts | ||
| global-types.ts | ||
| global-variables.d.ts | ||
| index.ts | ||
| ip-tools.ts | ||
| ladders-local.ts | ||
| ladders-remote.ts | ||
| ladders.ts | ||
| loginserver.ts | ||
| monitor.ts | ||
| punishments.ts | ||
| room-battle.ts | ||
| room-game.ts | ||
| roomlogs.ts | ||
| rooms.ts | ||
| sockets.ts | ||
| team-validator-async.ts | ||
| users.ts | ||
| verifier.ts | ||