mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
Rename PluginWebpackEnvInfo to PluginWebEnvInfo
The old name is kept as a deprecated alias. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a4db2dc460
commit
f40113e01c
10 files changed
+25
-19
No files matched your search
@@ -6,7 +6,7 @@
|
||||
* @author Hornwitser
|
||||
* @module lib/users
|
||||
*/
|
||||
import type { PluginNodeEnvInfo, PluginWebpackEnvInfo } from "./plugin.js";
|
||||
import type { PluginNodeEnvInfo, PluginWebEnvInfo } from "./plugin.js";
|
||||
import { Permission } from "./data/index.js";
|
||||
|
||||
export const permissions = new Map<string, Permission>();
|
||||
@@ -88,7 +88,7 @@ export function definePermission({
|
||||
*
|
||||
* @param pluginInfos - Array of plugin info objects.
|
||||
*/
|
||||
export function registerPluginPermissions(pluginInfos: PluginNodeEnvInfo[] | PluginWebpackEnvInfo[]) {
|
||||
export function registerPluginPermissions(pluginInfos: PluginNodeEnvInfo[] | PluginWebEnvInfo[]) {
|
||||
for (const pluginInfo of pluginInfos) {
|
||||
for (const permission of pluginInfo.permissions ?? []) {
|
||||
if (typeof permission.name !== "string" || !permission.name.startsWith(`${pluginInfo.name}.`)) {
|
||||
|
||||
Reference in new issue
Block a user