From be2810b7fcec52fdcd854f5e2b2224b318d6a052 Mon Sep 17 00:00:00 2001 From: milimoe Date: Wed, 4 Jun 2025 01:18:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=20CreateItem=20=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OshimaWebAPI/Controllers/FunGameController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OshimaWebAPI/Controllers/FunGameController.cs b/OshimaWebAPI/Controllers/FunGameController.cs index 71154b9..959459a 100644 --- a/OshimaWebAPI/Controllers/FunGameController.cs +++ b/OshimaWebAPI/Controllers/FunGameController.cs @@ -2480,7 +2480,7 @@ namespace Oshima.FunGame.WebAPI.Controllers User user = FunGameService.GetUser(pc); string msg = ""; - if (user.IsAdmin) + if (user.IsAdmin || userid > 0) { PluginConfig pc2 = new("saved", targetid.ToString()); pc2.LoadConfig();