diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/permission/PermissionService.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/permission/PermissionService.kt index 1a12b8af1..0a6c39f89 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/permission/PermissionService.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/permission/PermissionService.kt @@ -155,7 +155,7 @@ public interface PermissionService

{ reason: PluginPermissionIdRequestType ) = PermissionId( plugin.name.toLowerCase().replace(' ', '.'), - permissionName.toLowerCase().replace(' ', '.') + permissionName ) public fun PermissionId.findCorrespondingPermission(): Permission? = INSTANCE[this] @@ -226,4 +226,4 @@ public interface PermissionService

{ return p.testPermission(permissible) } } -} \ No newline at end of file +}