forked from Oshima-Studios/OshimaGameModule
取消 CreateItem 权限
This commit is contained in:
parent
a9f0c7f6f1
commit
be2810b7fc
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user