取消 CreateItem 权限

This commit is contained in:
milimoe 2025-06-04 01:18:10 +08:00
parent a9f0c7f6f1
commit be2810b7fc
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E

View File

@ -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();